09 2013 档案
摘要:NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *savedImagePath = [documentsDirectory stringByAppendingPathComponent:@"savedImage.png"]; //also be .jpg or another ...
阅读全文
摘要:A页面//向列表页面B发送一个通知 postShopZanCountDataNSMutableDictionary *dic=[[NSMutableDictionaryalloc] init]; [[NSNotificationCenterdefaultCenter] postNotificationName:@"postData"object:niluserInfo:dic];B 页面[[NSNotificationCenterdefaultCenter] addObserver:selfselector:@selector(update:) name:@"po
阅读全文
摘要:如果cell上面只有一个button 可以设置button.tag=IndexPath.Row;得到当前点击的行数,设置button属性的时候,可以设置一个全局的button来记住当前点击的button,UITableViewCell*clickCell=(UITableViewCell*)[[btn superview] superview];得到当前点击的 button所在的cell
阅读全文