上一页 1 ··· 3 4 5 6 7
摘要: 作为一个viewController(VC),想要消失的时候可以从parent VC里面调用dismissModalViewControllerAnimated来消去改VC,也可以在该VC里面手动调用self dismissModalViewControllerAnimated:YES来消去自己。 ... 阅读全文
posted @ 2015-12-08 16:44 飘金 阅读(1844) 评论(0) 推荐(0) 编辑
摘要: #define UIColorFromHEX(rgbValue) [UIColor \colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \green:((float)((rgbValue & 0xFF00) >> 8))/255.0 ... 阅读全文
posted @ 2015-12-08 11:49 飘金 阅读(411) 评论(0) 推荐(0) 编辑
摘要: -(IBAction)onTest:(id)sender{BlockDemo*demo=[[BlockDemoalloc]init];__weaktypeof(BlockDemo)*weakDemo=demo;[demosetExecuteFinished:^{if(weakDemo.resultC... 阅读全文
posted @ 2015-12-08 11:25 飘金 阅读(225) 评论(0) 推荐(0) 编辑
摘要: dispatch_async(dispatch_get_main_queue(), ^{ [_tableview scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:self.totalCount>EMAIL_COUNT?EMAIL_COUNT... 阅读全文
posted @ 2015-12-03 14:29 飘金 阅读(166) 评论(0) 推荐(0) 编辑
摘要: IOS Xib使用——为控制器添加Xib文件 Xib文件是一个轻量级的用来描述局部界面的文件,它与StoryBoard类似,都是使用Interface Bulider工具进行编辑。但是StoryBoard是重量级的,它是用来描述整个软件的多个界面,并且能够展示多个页面之间的跳转关系。在StoryB... 阅读全文
posted @ 2015-12-02 16:22 飘金 阅读(536) 评论(0) 推荐(0) 编辑
摘要: iOS 手势操作:拖动、捏合、旋转、点按、长按、轻扫、自定义大中小1、UIGestureRecognizer 介绍手势识别在 iOS 中非常重要,他极大地提高了移动设备的使用便捷性。iOS 系统在 3.2 以后,他提供了一些常用的手势(UIGestureRecognizer 的子类),开发者可以直接... 阅读全文
posted @ 2015-11-30 14:41 飘金 阅读(246) 评论(0) 推荐(0) 编辑
摘要: autolayout自动布局技术在iOS6就已经推出了,但是因为很多人一开始不习惯使用xib编程,而是坚持使用代码布局控件,所以autolayout并没有普及的太快。但是现在随着越来越多的人开始使用xib,怎样适配不同屏幕的尺寸和横竖屏,成了亟待解决的问题,好在两年前就已经推出并且日臻完善的xib ... 阅读全文
posted @ 2015-11-20 15:04 飘金 阅读(141) 评论(0) 推荐(0) 编辑
摘要: __block __weak typeof(self) tmpSelf = self;^(){tmpSelf......} 阅读全文
posted @ 2015-10-19 14:51 飘金 阅读(292) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7