上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 77 下一页
摘要: - (void)drawRect:(CGRect)rect{ // draw a rounded rect bezier path filled with blue CGContextRef aRef = UIGraphicsGetCurrentContext(); CGConte... 阅读全文
posted @ 2015-08-24 09:52 小毛驴 阅读(280) 评论(0) 推荐(0) 编辑
摘要: NSOperationQueue *operationQueue; // for rendering pages on second thread[operationQueue waitUntilAllOperationsAreFinished];一句很简单的代码,可以实现UI的异步操作,知道操... 阅读全文
posted @ 2015-08-23 22:48 小毛驴 阅读(643) 评论(0) 推荐(0) 编辑
摘要: UIViewController.preferredContentSize代理旧方法contentSizeForViewInPopover。self.contentSizeForViewInPopover= CGSizeMake(300.0,860.0); 阅读全文
posted @ 2015-08-22 22:19 小毛驴 阅读(851) 评论(0) 推荐(0) 编辑
摘要: 代码简化, 促进跨平台开发的目的. typedef 行为有点像 #define 宏,用其实际类型替代同义字。 不同点:typedef 在编译时被解释,因此让编译器来应付超越预处理器能力的文本替换。用法一:typedefint(*MYFUN)(int, int);这种用法一般用在给函数定义别名的时候上... 阅读全文
posted @ 2015-08-22 18:36 小毛驴 阅读(522) 评论(0) 推荐(0) 编辑
摘要: https://developer.apple.com/library/ios/samplecode/UICatalog/Listings/Objective_C_UICatalog_AAPLAlertControllerViewController_m.html#//apple_ref/doc/u... 阅读全文
posted @ 2015-08-20 17:52 小毛驴 阅读(149) 评论(0) 推荐(0) 编辑
摘要: UIFontDescriptor *bodyFontDescriptor = [UIFontDescriptor preferredFontDescriptorWithTextStyle:UIFontTextStyleBody]; self.textView.font = [UIFont fo... 阅读全文
posted @ 2015-08-20 17:28 小毛驴 阅读(1001) 评论(0) 推荐(0) 编辑
摘要: #import @interface AddPictureViewController : UIViewController{ UITextView *contenttextview; UIImageView *contentimageview; NSString *lastCho... 阅读全文
posted @ 2015-08-20 09:26 小毛驴 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 今天的单词分别是:lAsynchronous形容词 异步的n副词形式: asynchronously 异步地n缩写:ASYNCn反义词:synchronous 形容词同步的使用用法:synchronize 使xxx同步n例句:u[asiHttpRequest startAsynchronous]让一... 阅读全文
posted @ 2015-08-20 09:20 小毛驴 阅读(318) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/lovecode/articles/2249548.html从这个人这里了解了一些关于uiview和uilayer的区别 以及对于渲染和动画也有了一些了解http://www.cnblogs.com/lovecode/tag/自定义/上面那个大牛写的很多... 阅读全文
posted @ 2015-08-20 09:12 小毛驴 阅读(168) 评论(0) 推荐(0) 编辑
摘要: + (APCCustomBackButton *)customBackButtonWithTarget:(id)aTarget action:(SEL)anAction tintColor:(UIColor *)aTintColor{ APCCustomBackButton *button = [... 阅读全文
posted @ 2015-08-19 23:10 小毛驴 阅读(122) 评论(0) 推荐(0) 编辑
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 77 下一页