File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 301
301
buildSettings = {
302
302
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
303
303
INFOPLIST_FILE = Demo/Info.plist;
304
- IPHONEOS_DEPLOYMENT_TARGET = 8 .0;
304
+ IPHONEOS_DEPLOYMENT_TARGET = 7 .0;
305
305
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
306
306
PRODUCT_NAME = "$(TARGET_NAME)";
307
307
};
312
312
buildSettings = {
313
313
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
314
314
INFOPLIST_FILE = Demo/Info.plist;
315
- IPHONEOS_DEPLOYMENT_TARGET = 8 .0;
315
+ IPHONEOS_DEPLOYMENT_TARGET = 7 .0;
316
316
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
317
317
PRODUCT_NAME = "$(TARGET_NAME)";
318
318
};
Original file line number Diff line number Diff line change @@ -20,13 +20,21 @@ @interface FDFeedCell ()
20
20
21
21
@implementation FDFeedCell
22
22
23
+ - (void )awakeFromNib
24
+ {
25
+ [super awakeFromNib ];
26
+
27
+ // Fix the bug in iOS7 - initial constraints warning
28
+ self.contentView .bounds = [UIScreen mainScreen ].bounds ;
29
+ }
30
+
23
31
- (void )setEntity : (FDFeedEntity *)entity
24
32
{
25
33
_entity = entity;
26
34
27
35
self.titleLabel .text = entity.title ;
28
36
self.contentLabel .text = entity.content ;
29
- self.contentImageView .image = [UIImage imageNamed: entity.imageName];
37
+ self.contentImageView .image = entity. imageName . length > 0 ? [UIImage imageNamed: entity.imageName] : nil ;
30
38
self.usernameLabel .text = entity.username ;
31
39
self.timeLabel .text = entity.time ;
32
40
}
You can’t perform that action at this time.
0 commit comments