09 2013 档案

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

点击右上角即可分享
微信分享提示