上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: #import "ViewController.h" @interface ViewController () @property (weak, nonatomic) IBOutlet UILabel *titleLabel; @property (copy , nonatomic)NSString 阅读全文
posted @ 2016-09-13 10:08 tongyuling 阅读(169) 评论(0) 推荐(0) 编辑
摘要: //禁用第三方输入键盘 - (BOOL)application:(UIApplication *)application shouldAllowExtensionPointIdentifier:(NSString *)extensionPointIdentifier { return NO; } 阅读全文
posted @ 2016-08-30 17:24 tongyuling 阅读(2053) 评论(0) 推荐(0) 编辑
摘要: navigationBar变为纯透明 //第一种方法 //导航栏纯透明 [self.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault]; //去掉导航栏底部的黑线 self.navigat 阅读全文
posted @ 2016-08-30 15:52 tongyuling 阅读(2499) 评论(0) 推荐(0) 编辑
摘要: - (UIImage *)imageWithTitle:(NSString *)title fontSize:(CGFloat)fontSize { //画布大小 CGSize size=CGSizeMake(self.size.width,self.size.height); //创建一个基于位图 阅读全文
posted @ 2016-08-30 15:42 tongyuling 阅读(2776) 评论(0) 推荐(0) 编辑
摘要: G: 公元时代,例如AD公元 yy: 年的后2位 yyyy: 完整年 MM: 月,显示为1-12 MMM: 月,显示为英文月份简写,如 Jan MMMM: 月,显示为英文月份全称,如 Janualy dd: 日,2位数表示,如02 d: 日,1-2位显示,如 2 EEE: 简写星期几,如Sun EE 阅读全文
posted @ 2016-08-30 15:16 tongyuling 阅读(173) 评论(0) 推荐(0) 编辑
摘要: [textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"]; 阅读全文
posted @ 2016-08-30 15:14 tongyuling 阅读(181) 评论(0) 推荐(0) 编辑
摘要: NSArray *array = [NSArray arrayWithObjects:@"2.0", @"2.3", @"3.0", @"4.0", @"10", nil]; CGFloat sum = [[array valueForKeyPath:@"@sum.floatValue"] floa 阅读全文
posted @ 2016-08-30 15:09 tongyuling 阅读(1989) 评论(0) 推荐(0) 编辑
摘要: 调用: [self setStatusBarBackgroundColor:[UIColor orangeColor]]; - (void)setStatusBarBackgroundColor:(UIColor *)color { UIView *statusBar = [[[UIApplicat 阅读全文
posted @ 2016-08-30 15:08 tongyuling 阅读(204) 评论(0) 推荐(0) 编辑
摘要: UITableView的Group样式下顶部空白处理 在viewWillAppear里面添加如下代码: //分组列表头部空白处理 CGRect frame = myTableView.tableHeaderView.frame; frame.size.height = 0.1; UIView *he 阅读全文
posted @ 2016-08-30 15:02 tongyuling 阅读(103) 评论(0) 推荐(0) 编辑
摘要: NSArray * name = @[@"1",@"2",@"3",@"4"]; for (int i = 0; i<name.count; i++) { UIButton * btn = [[UIButton alloc]initWithFrame:CGRectMake(20+i%(name.co 阅读全文
posted @ 2016-08-30 10:46 tongyuling 阅读(123) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页