关于学习:规律的行动可以养成良好的习惯
1 @interface ViewController () 2 @property(nonatomic,copy)NSString *action; 3 @property(nonatomic,copy)NSString *rule; 4 @end 5 6 @implementation ViewController 7 8 - (void)viewDidLoad { 9 [super viewDidLoad]; 10 11 //从今天开始,养成每天解决5个问题并写技术博客的习惯 12 [self customFromRuleAction:@"解决5个问题并写技术博客" rule:@"每天"]; 13 } 14 15 - (NSString *)customFromRuleAction:(NSString *)action rule:(NSString *)rule{ 16 //规律的行动可以养成良好的习惯 17 18 NSString *custom = [action stringByAppendingString:rule]; 19 return custom; 20 }