摘要: 出现CUICatalog: Invalid asset name supplied:的原因是[UIImage imageNamed:@" "];你的资源名无效 阅读全文
posted @ 2015-12-12 11:18 小小磊 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-11-24 14:55 小小磊 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 在appdelegate中判断是否是从推送进入的app 如果是就把消息的内容用NSNotification注册一个通知 然后去首页 接收这个通知判断消息内容 并且跳转到该页面 曾经难住的是在首页有一个跳转延时 导致的跳转不过去 如果不成功就加一个延迟让通知延迟0.5秒左右接收 时间看实际情况 恩就先... 阅读全文
posted @ 2015-11-16 18:33 小小磊 阅读(574) 评论(0) 推荐(0) 编辑
摘要: - (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset{ ... 阅读全文
posted @ 2015-11-16 18:17 小小磊 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 主要看images.xcassets中Applcon里面下面的pt 2x就是tp*2以此类推加载页尺寸为iPhone Portrait iOS 8-Retina HD 5.5 (1242×2208) @3xiPhone Portrait iOS 8-Retina HD 4.7 (750×1334) ... 阅读全文
posted @ 2015-11-16 18:12 小小磊 阅读(551) 评论(0) 推荐(0) 编辑
摘要: 1. .m内容#import "XLTableView.h"#import "XLTableViewCell.h"#import "PowerPictureViewController.h"@interface XLTableView ()@property (nonatomic ,strong) ... 阅读全文
posted @ 2015-11-14 14:35 小小磊 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1.首先要遵守UIPickerViewDataSource, UIPickerViewDelegate 这两个协议2.所需要的对象@property (nonatomic ,strong) NSMutableArray *year_Array;@property (nonatomic ,strong... 阅读全文
posted @ 2015-11-14 14:30 小小磊 阅读(728) 评论(0) 推荐(0) 编辑
摘要: 1. 通过叫Point获取 CGPoint correctedPoint = [textField convertPoint:textField.bounds.origin toView:self.tableView]; NSIndexPath *indexPath = [self.table... 阅读全文
posted @ 2015-11-14 13:40 小小磊 阅读(1180) 评论(0) 推荐(0) 编辑