Skip to content

Commit

Permalink
update.
Browse files Browse the repository at this point in the history
  • Loading branch information
sshiqiao committed Sep 28, 2018
1 parent a3d45ef commit a229bd2
Show file tree
Hide file tree
Showing 8 changed files with 323 additions and 319 deletions.
4 changes: 2 additions & 2 deletions Douyin.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.4;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -1068,7 +1068,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.4;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions Douyin/Controller/AwemeList/AwemeListController.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ - (void)viewDidLoad {
}

- (void)setUpView {
_tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT * 5)];
_tableView.contentInset = UIEdgeInsetsMake(0, 0, SCREEN_HEIGHT * 4, 0);
_tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, -SCREEN_HEIGHT, SCREEN_WIDTH, SCREEN_HEIGHT * 5)];
_tableView.contentInset = UIEdgeInsetsMake(SCREEN_HEIGHT, 0, SCREEN_HEIGHT * 3, 0);

_tableView.backgroundColor = ColorClear;
_tableView.delegate = self;
Expand Down
4 changes: 3 additions & 1 deletion Douyin/WebP/WebPImage.m
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@ - (UIImage *)decodeWebPImageAtIndex:(NSInteger)index {
CGColorSpaceRef colorSpaceRef = CGColorSpaceCreateDeviceRGB();

VP8StatusCode status = WebPDecode(frame.bytes, frame.size, &config);
if (status != VP8_STATUS_OK)
if (status != VP8_STATUS_OK) {
CGColorSpaceRelease(colorSpaceRef);
return nil;
}
int imageWidth, imageHeight;
uint8_t *data = WebPDecodeRGBA(frame.bytes, frame.size, &imageWidth, &imageHeight);
if (data == NULL)
Expand Down
2 changes: 2 additions & 0 deletions Podfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
platform :ios,'8.0'
inhibit_all_warnings!
target 'Douyin' do
pod 'AFNetworking'
pod 'JSONModel'
Expand Down
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ SPEC CHECKSUMS:
Masonry: 678fab65091a9290e40e2832a55e7ab731aad201
SocketRocket: d57c7159b83c3c6655745cd15302aa24b6bae531

PODFILE CHECKSUM: ec1ab94d13c93b9bec07de295de1201a67a2b4a6
PODFILE CHECKSUM: f544de4fee93a48088699126933b29785868a933

COCOAPODS: 1.5.0
2 changes: 1 addition & 1 deletion Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

624 changes: 312 additions & 312 deletions Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

0 comments on commit a229bd2

Please sign in to comment.