IP屬地:貴州
1.將某個對象寫入文件時會調(diào)用*在這個方法中說清楚哪些屬性需要存儲- (void)encodeWithCoder:(NSCoder*)encod...
- (void)saveArray{// 1.獲得沙盒根路徑NSString*home =NSHomeDirectory();// 2.docu...
1.執(zhí)行segue后,跳轉(zhuǎn)之前會調(diào)用這個方法,一般在這里給下一個控制器傳遞數(shù)據(jù),在這個方法中,目標(biāo)控制器的view還沒有被創(chuàng)建 - (void)...
- (IBAction)save {// 1.利用NSUserDefaults,就能直接訪問軟件的偏好設(shè)置(Library/Preference...
1.創(chuàng)建通知事件 [[NSNotificationCenterdefaultCenter]addObserver:selfselector:@s...
1.創(chuàng)建個類方法,使外界通過該函數(shù)創(chuàng)建cell + (instancetype)cellWithTableView:(UITableView*)...