摘要: Github:目前最活跃的开源社区,每天要花很多时间在这里浏览一些的东西,学习源码.stackoverflow:技术社区raywenderlich:有很多的iOS的教程,值得学习,网站可以购买《iOS 6 By Tutorials》版本书籍,很不错maniacdev:不错的网站更新很快收集了很多iO... 阅读全文
posted @ 2016-01-25 14:35 新阳 阅读(159) 评论(0) 推荐(0)
摘要: 1.初始化:- 对于在程序中创建的View,重写initWithFrame初始化。- 对于在nib中载入的View,重写initWithCoder初始化。- 在nib文件载入完成后,可以使用awakeFromNib处理其他初始化操作。awakeFromNib在initWithCoder之后执行。注意... 阅读全文
posted @ 2016-01-18 15:45 新阳 阅读(117) 评论(0) 推荐(0)
摘要: NSInteger index = 0; for (ONRadioGiftsModel *gift in _gifts) { if ([gift.isLost isEqualToString:@"0" ]) { _isShow = YES; UIImageView*gifImageView=[[... 阅读全文
posted @ 2016-01-18 15:41 新阳 阅读(757) 评论(0) 推荐(0)
摘要: - (UIImage *)thumbnailWithImageWithoutScale:(UIImage *)image size:(CGSize)asize{ UIImage *newimage; if (nil == image) { newimage = nil; } else{ CGSize... 阅读全文
posted @ 2016-01-18 15:38 新阳 阅读(249) 评论(0) 推荐(0)
摘要: 1.添加内容变化的通知响应事件:[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(textChanged:) name: UITextViewTextDidChangeNotification obje... 阅读全文
posted @ 2016-01-08 16:30 新阳 阅读(431) 评论(0) 推荐(0)
摘要: @interface ONMessageHeaderView ()@property (strong, nonatomic)UICollectionView *collectionView;@property (nonatomic , assign) NSInteger visitorPage;/*... 阅读全文
posted @ 2015-12-26 16:21 新阳 阅读(4185) 评论(0) 推荐(0)