上一页 1 ··· 6 7 8 9 10 11 12 13 下一页
摘要: UIEdgeInsets insets = {0,0,0,0}; [self.showidentifyButton setImageEdgeInsets:insets]; NSData *imageData = [[NSData alloc] initWithBase64EncodedString: 阅读全文
posted @ 2016-08-19 10:18 乔胖胖 阅读(743) 评论(0) 推荐(0) 编辑
摘要: 1、若用方法: //-(BOOL)tableView:(UITableView *)tableView shouldHighlightRowAtIndexPath:(NSIndexPath *)indexPath{ // return NO; //} 会导致,tableview都不能相应cell的点 阅读全文
posted @ 2016-07-25 17:45 乔胖胖 阅读(1471) 评论(0) 推荐(0) 编辑
摘要: //根据View获取控制器 - (UIViewController*)viewController { for (UIView* next = [self superview]; next; next = next.superview) { UIResponder* nextResponder = 阅读全文
posted @ 2016-07-25 15:24 乔胖胖 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 代码: -(void)setComplaintlistItem:(ComplaintlistItem *)complaintlistItem{ _complaintlistItem = complaintlistItem; [self.yeZhuNameLabel setText:complaint 阅读全文
posted @ 2016-07-22 17:30 乔胖胖 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 自定义cell,用于两种显示情况,首次进来A种情况(主材页面),正确显示,然后切换B种情况(辅材情况),可以正确显示,但是当再次切换回A种情况(主材情况)的时候,主材cell不能正常显示了,遗留的B中情况(辅材的)布局。或者出现布局重叠的情况。 如图所示: 解决方法: 需要调整一定要用mas_rem 阅读全文
posted @ 2016-06-23 14:24 乔胖胖 阅读(292) 评论(0) 推荐(0) 编辑
摘要: NSTimer的避免内存泄露与控制器的正确引用和释放: 阅读全文
posted @ 2016-05-30 13:38 乔胖胖 阅读(112) 评论(0) 推荐(0) 编辑
摘要: textFiled,字数控制 阅读全文
posted @ 2016-05-26 10:14 乔胖胖 阅读(430) 评论(0) 推荐(0) 编辑
摘要: NSIntegerMax、NSIntegerMin、NSUIntegerMax、MAXFLOAT 阅读全文
posted @ 2016-05-16 16:44 乔胖胖 阅读(204) 评论(0) 推荐(0) 编辑
摘要: UITextView中如果添加了子空间,比如自己添加一个placeHolder,placeHolder的Label使用masonry布局,会出现崩溃,原因是:在UITextView没有对子控件进行布局。 解决方法: 自定义一个textView继承自UITextView,然后在自己的textView类 阅读全文
posted @ 2016-05-16 16:41 乔胖胖 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 进程:正在进行中的程序被称为进程,负责程序运行的内存分配;每一个进程都有自己独立的虚拟内存空间 线程:线程是进程中一个独立的执行路径(控制单元);一个进程中至少包含一条线程,即主线程 队列 dispatch_queue_t,队列名称在调试时辅助,无论什么队列和任务,线程的创建和回收不需要程序员操作, 阅读全文
posted @ 2016-05-16 16:41 乔胖胖 阅读(1727) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 下一页