会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
tongyuling
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
10
下一页
2016年9月13日
喷枪打字动画
摘要: #import "ViewController.h" @interface ViewController () @property (weak, nonatomic) IBOutlet UILabel *titleLabel; @property (copy , nonatomic)NSString
阅读全文
posted @ 2016-09-13 10:08 tongyuling
阅读(177)
评论(0)
推荐(0)
2016年8月30日
iOS 禁用第三方输入键盘方法
摘要: //禁用第三方输入键盘 - (BOOL)application:(UIApplication *)application shouldAllowExtensionPointIdentifier:(NSString *)extensionPointIdentifier { return NO; }
阅读全文
posted @ 2016-08-30 17:24 tongyuling
阅读(2083)
评论(0)
推荐(0)
iOS navigationBar和tabBar变透明 & navigationBar根据滑动距离的渐变色实现
摘要: navigationBar变为纯透明 //第一种方法 //导航栏纯透明 [self.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault]; //去掉导航栏底部的黑线 self.navigat
阅读全文
posted @ 2016-08-30 15:52 tongyuling
阅读(2521)
评论(0)
推荐(0)
iOS 图片上绘制文字
摘要: - (UIImage *)imageWithTitle:(NSString *)title fontSize:(CGFloat)fontSize { //画布大小 CGSize size=CGSizeMake(self.size.width,self.size.height); //创建一个基于位图
阅读全文
posted @ 2016-08-30 15:42 tongyuling
阅读(2795)
评论(0)
推荐(0)
iOS 关于NSDateFormatter的格式
摘要: 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
阅读(180)
评论(0)
推荐(0)
iOS 修改UITextField中Placeholder的文字颜色
摘要: [textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];
阅读全文
posted @ 2016-08-30 15:14 tongyuling
阅读(189)
评论(0)
推荐(0)
iOS NSArray 快速求总和、最大值、最小值、平均值的方法
摘要: 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
阅读(2003)
评论(0)
推荐(0)
iOS 修改状态栏的颜色方法
摘要: 调用: [self setStatusBarBackgroundColor:[UIColor orangeColor]]; - (void)setStatusBarBackgroundColor:(UIColor *)color { UIView *statusBar = [[[UIApplicat
阅读全文
posted @ 2016-08-30 15:08 tongyuling
阅读(209)
评论(0)
推荐(0)
iOS UITableView小技巧
摘要: UITableView的Group样式下顶部空白处理 在viewWillAppear里面添加如下代码: //分组列表头部空白处理 CGRect frame = myTableView.tableHeaderView.frame; frame.size.height = 0.1; UIView *he
阅读全文
posted @ 2016-08-30 15:02 tongyuling
阅读(110)
评论(0)
推荐(0)
iOS btn实现collectionView方法
摘要: 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
阅读(131)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
10
下一页
公告