摘要:
1:保存数据 [[NSUserDefaultsstandardUserDefaults] setObject:@"http://www.baidu.com"forKey:@"selectedURL"];2:取数据 NSLog(@" 正在访问---> %@",[[NSUserDefaultsstandardUserDefaults] objectForKey:@"selectedURL"]);3:官方说明:Getting the Shared NSUserDefaults Instance+standardUs 阅读全文
摘要:
//设置移动效果-(void)setEditing:(BOOL)editing animated:(BOOL)animated{ [super setEditing:editing animated:animated]; [self.tableView setEditing:editing animated:animated]; }-(BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath{ return YES;}-(void)tableVie... 阅读全文
摘要:
//1:发布通知-----通知回调方法 NSNotificationCenter *refreshWebNotice = [NSNotificationCenterdefaultCenter]; [refreshWebNotice postNotificationName:@"refreshWeb" object:nil]; //2:接收通知----通知回调方法刷新网页;refreshweb [[NSNotificationCenterdefaultCenter] addObserver:selfselector:@selector(refreshWeb) name:@&q 阅读全文