摘要: 手势 阅读全文
posted @ 2015-11-05 19:59 吃饭了吗 阅读(151) 评论(0) 推荐(0) 编辑
摘要: NavigationControllernavigationItem.title导航标题navigationItem.titleView标题图片navigationItem.leftBarButtonItem 左上角标题 阅读全文
posted @ 2015-11-05 19:58 吃饭了吗 阅读(116) 评论(0) 推荐(0) 编辑
摘要: #import "ViewController.h"@interface ViewController () /** 价格view */@property (nonatomic, weak) UIView *priceView;@property (weak, nonatomic) IBOutlet... 阅读全文
posted @ 2015-11-03 23:56 吃饭了吗 阅读(194) 评论(0) 推荐(0) 编辑
摘要: CGRectnewRect = [self.view.windowconvertRect:self.blueView.framefromView:self.redView];NSLog(@"%@",NSStringFromCGRect(newRect));结果:2015-11-03 19:30:37... 阅读全文
posted @ 2015-11-03 20:14 吃饭了吗 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 子视图是以栈的方式存放的。每次addsubview时都是在最后面添加。每次在addsubview前和addsubview后可以看看[self.view.subViews count];你看看你的子视图是被添加到哪个位置了。另外[self.view addSubView:xx.view] 其实就等于[... 阅读全文
posted @ 2015-10-28 20:16 吃饭了吗 阅读(300) 评论(0) 推荐(0) 编辑
摘要: /* NSDateFormatter的作用 1.NSString -> NSDate 2.NSDate -> NSString */void fmt_date_to_string();void fmt_string_to_date();void fmt_string_to_date2();void ... 阅读全文
posted @ 2015-10-28 17:29 吃饭了吗 阅读(364) 评论(0) 推荐(0) 编辑
摘要: #import "NSDate+XMGExtension.h"@implementation NSDate (XMGExtension)/** * 是否为今天 */- (BOOL)isToday{ NSCalendar *calendar = [NSCalendar currentCalen... 阅读全文
posted @ 2015-10-28 16:59 吃饭了吗 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 专题 UIAlertController// iOS8之前 // UIAlertView // UIActionSheet; // iOS8开始 // UIAlertController == UIAlertView + UIActionSheet UIAler... 阅读全文
posted @ 2015-10-28 16:34 吃饭了吗 阅读(144) 评论(0) 推荐(0) 编辑
摘要: UIScrollView的属性总结属性 TableView作用separatorStyle分割线rowHeight行高属性作用CGPoint contentOffSet监控目前滚动的位置CGSize contentSize滚动范围的大小UIEdgeInsets contentInset视图在scro... 阅读全文
posted @ 2015-10-28 16:02 吃饭了吗 阅读(308) 评论(0) 推荐(0) 编辑
摘要: UITableView和UITableViewCell的几种样式转至 http://blog.csdn.net/crazyzhang1990/article/details/12503163一、系统自己的UITableView样式有两种:1.UITableViewStylePlain:Plain样式... 阅读全文
posted @ 2015-10-27 23:10 吃饭了吗 阅读(315) 评论(0) 推荐(0) 编辑