摘要: 1.父视图半透明,子视图不透明 FatherView.backgroundColor = [[UIColor lightGrayColor] colorWithAlphaComponent:0.5]; 阅读全文
posted @ 2015-10-22 23:21 TheYouth 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 1.时间与时间的比较 ["时间1" timeIntervalSinceDate:"时间2"] >= 0; 阅读全文
posted @ 2015-10-22 23:19 TheYouth 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 1.在点击方法中获得手势的父视图 /**tap是手势*/ UIButton *currentBtn = (UIButton *)(tap.view); 阅读全文
posted @ 2015-10-22 23:14 TheYouth 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 1.获取系统Window,并设置根控制器 UIWindow *windows = [UIApplication sharedApplication].keyWindow; windows.rootViewController = "要设置的根控制器类"; 2.在appDelegate类中获取stor 阅读全文
posted @ 2015-10-22 23:11 TheYouth 阅读(157) 评论(0) 推荐(0) 编辑