2014年1月3日

ios plist读取数据

摘要: NSString *plistPath=[[NSBundle mainBundle]pathForResource:@"helpTips", ofType:@"plist"];若plist存储的是NSArray 类型的数据变量则 NSArray* arry=[[NSArry allo] initWithContentOfFile:plistPath]; 阅读全文

posted @ 2014-01-03 16:59 小白说我是2B 阅读(128) 评论(0) 推荐(0) 编辑

ios UIlabel

摘要: UIlabel 自动换行, 在storyboard中 选择label,切换到 attribute inspector 选择Line Break为 word warp, Lines选择0,否则无效 阅读全文

posted @ 2014-01-03 14:46 小白说我是2B 阅读(191) 评论(0) 推荐(0) 编辑

UITableView添加UITapGestureRecognizer与didSelectRowAtIndexPath冲突解决

摘要: //添加手势,点击屏幕其他区域关闭键盘的操作UITapGestureRecognizer*gesture=[[UITapGestureRecognizeralloc]initWithTarget:selfaction:@selector(hidenKeyboard)];gesture.numberOfTapsRequired=1; //2就是双击[self.viewaddGestureRecognizer:gesture];在UITableView上添加了UITapGestureRecognizer后会导致didSelectRowAtIndexPath失效,原因是UITapGestureRec 阅读全文

posted @ 2014-01-03 12:50 小白说我是2B 阅读(534) 评论(0) 推荐(0) 编辑

导航