1.取主屏幕尺寸Frame
CGRect rectFrame = [[UIScreenmainScreen]bounds];
2.取资源路径的另一种方法(加载WebView)
NSString *mainBundleDirectory=[[NSBundle mainBundle] bundlePath];
NSLog(@"bundlePath_:%@",mainBundleDirectory);
NSString *realPath=[mainBundleDirectory stringByAppendingPathComponent:resourceName];
NSLog(@"resourceName:%@",realPath);
NSURL *url=[NSURL fileURLWithPath:path];
NSURLRequest *request=[NSURLRequest requestWithURL:url];
aWebView.scalesPageToFit=YES;
[aWebView loadRequest:request];
3.ABPeoplePickerNavigationController
通讯录,允许用户从通讯录选择一个联系人或从地址簿中得到相关信息
4.NSOperation和NSOperationQueue
使用NSOperation和NSOperationQueue在后台线程中处理任务的方法
5.iPad下设置UITableView背景颜色
tableView.backgroundView = nil;设置后可对其背景颜色进行修改
6.关闭全部软键盘方法
[view endEditing:NO];view是其它视图类的父视图
本文介绍了iOS开发中取主屏幕尺寸、资源路径获取、ABPeoplePicker导航控制器使用、后台线程任务处理、UITableView背景设置及关闭软键盘方法等关键技术。
2091

被折叠的 条评论
为什么被折叠?



