iOS API更新
来源:互联网 发布:java获取post请求数据 编辑:程序博客网 时间:2024/04/28 20:39
更新列表
5th,August,2016
stringByAddingPercentEscapesUsingEncoding
Deprecated in iOS9.0:
urlStr = [urlStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
Updated:
[urlStr stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
31st,August,2016
UIAlertView
Deprecated in iOS9.0:
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"超出100字限制" message:@"" delegate:nil cancelButtonTitle:@"知道了" otherButtonTitles: nil];[alert show];
Updated:
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"超出100字限制" message:nil preferredStyle:UIAlertControllerStyleAlert];UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"知道了" style:UIAlertActionStyleDefault handler:nil];[alertController addAction:okAction];[self presentViewController:alertController animated:YES completion:nil];
1st,Nov,2016
setStatusBarHidden
隐藏导航栏
Deprecated in iOS9.0:
[[UIApplication sharedApplication] setStatusBarHidden:YES];
Updated:
“Use -[UIViewController prefersStatusBarHidden]”
// 在对应的viewController中重写该方法,返回YES.默认返回为NO,即不应藏导航栏- (BOOL)prefersStatusBarHidden { return YES;}
2rd,Nov,2016
计算文本高度
Deprecated in iOS7.0:
CGSize size = [strText sizeWithFont: textView.font constrainedToSize:constraint lineBreakMode:UILineBreakModeWordWrap]; CGFloat height = size.height;
Updated:
- (float)heightForTextView:(UITextView *)textView { float fPadding = 8.0; CGSize constraint = CGSizeMake(textView.contentSize.width - fPadding*2 - 30*2, MAXFLOAT); CGRect rect = [textView.text boundingRectWithSize:constraint options:NSStringDrawingUsesLineFragmentOrigin attributes:[NSDictionary dictionaryWithObjectsAndKeys:textView.font,NSFontAttributeName, nil] context:nil]; float fHeight = rect.size.height + 16.0; return fHeight;}
持续更新中…
0 0
- iOS API更新
- 更新api
- arcgis api for IOS版本更新
- IOS 更新
- ios API
- Android 更新API详细
- 利用API更新PO
- 修改量更新API
- mac adt 更新API
- sdk manager 更新api
- IOS-百度地图API用点生成线路、导航、自定义标注 2013年11月更新
- IOS-百度地图API用点生成线路、导航、自定义标注 2013年11月更新
- Elasticsearch java API (9)更新的API
- MFC API小结(持续更新)
- 飞信API 持续更新,。
- API创建/更新员工联系电话
- API创建/更新员工薪水
- 更新api/current.txt文件
- 面向对象基础
- Android之Rx
- hdu 2647 Reward(拓扑排序)
- 表的条件顺序
- Flume简介及配置
- iOS API更新
- HDU 1241 Oil Deposits 且行且珍惜--
- Node中的异步I/O
- C++容器用法简介——list
- hdu 2795 Billboard
- Activity
- jdbc连接数据使用sid与server_name的区别
- SDP协议简述
- Android中的多线程断点续传