Skip to content

Commit

Permalink
修复在4s-iOS9模拟器上会引起崩溃的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenYilong committed Sep 23, 2015
1 parent 058ab57 commit 82b9ee9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@

@interface CYLNews : NSObject

@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *summary; //摘要
@property (nonatomic, copy) NSString *img;
@property (nonatomic, copy) NSString *sitename;
@property (nonatomic, assign) long addtime;
@property (nonatomic, copy) NSString *time;
@property (nonatomic, readonly, copy) NSString *title;
@property (nonatomic, readonly, copy) NSString *summary; //摘要
@property (nonatomic, readonly, copy) NSString *img;
@property (nonatomic, readonly, copy) NSString *sitename;
/*
*
之前写的是 long,但是4s-iOS9模拟器上会崩溃,暂时改成 int 类型
*
*/
@property (nonatomic, readonly, assign) int addtime;
@property (nonatomic, readonly, copy) NSString *time;

+ (instancetype)newWithDic:(NSDictionary *)dic;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ - (NSString *)time {
* 获取news对象所有的属性
*/
+ (NSArray *)getProperties {
return @[@"title",@"summary",@"img",@"sitename",@"addtime"];
return @[ @"title", @"summary", @"img", @"sitename", @"addtime" ];
}

- (NSString *)description{
Expand Down

0 comments on commit 82b9ee9

Please sign in to comment.