摘要: 下载IPHONE配置实用工具 ,我下的MAC版本,官方文档 :http://help.apple.com/iosdeployment-ipcu/mac/1.0/#appc28ee0f4点击新建 创建新的 “配置描述文件",其中 ”通用“设置是必须 填 写的然后再配置WIFI 信息生成好证书文件后,选择共享 通过邮件发送出证书,手机打开邮件中的附件即可自动安装 。也可以生成选择导出,直接添加到设备中。 阅读全文
posted @ 2013-08-01 17:30 wei8 阅读(666) 评论(2) 推荐(0)
摘要: 在项目中的plist中添加下面的key设定:SBUsesNetwork3UIRequiresPersistentWiFi首先,app如果要上app store是没有办法获取wifi列表的~===============设备需要开启“询问是否加入网络”。这些WIFI扫描软件使用了苹果的私有函数apple80211.framework尽管不能合法(指能通过App Store的审核)的获取WIFI列表, 不过我们还是可以获取到当前Wifi连接的信息,比如SSID.SSID全称Service Set IDentifier, 即Wifi网络的公开名称.苹果在IOS v4.1+版本上提供了公开的方法来获取 阅读全文
posted @ 2013-08-01 17:16 wei8 阅读(227) 评论(0) 推荐(0)
摘要: 元素控件尺寸(pts)Window(含状态栏) 320 x 480Status Bar的高度 20Navigation Bar的高度 44(横屏)32(竖屏)含Prompt的Navigation Bar的高度 74(横、竖屏)Navigation Bar的图标 20×20(透明的png)Tool Bar的高度 44(横屏)32(竖屏)Tool Bar的图标 20×20(透明的png)Tab Bar的高度 49Tab Bar的图标 30×30(透明的png)竖直时键盘的高度 216、252(iOS 5+的中文键盘)水平时键盘的高度 162、198(iOS 5+的中文 阅读全文
posted @ 2013-08-01 17:11 wei8 阅读(348) 评论(0) 推荐(0)
摘要: #define isPad (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) 阅读全文
posted @ 2013-08-01 17:10 wei8 阅读(117) 评论(0) 推荐(0)
摘要: Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath这个函数的返回值是个null!!查stackoverflow 找到下面的解。CellIdentifier I bet your cellForRowAtIndexPathisreturningnull.cell 为空会报这个错误 阅读全文
posted @ 2013-08-01 17:09 wei8 阅读(520) 评论(0) 推荐(0)
摘要: git branch test //创建分支git checkout test //切换到test分支git branch //显示分支git branch -a //显示 所有分支git push origin -u hotfix //把本地分支推送到服务器//协同开发分支时 git pull origin 分支名 ,拉取远程分支,merge 后再提交。 阅读全文
posted @ 2013-08-01 17:07 wei8 阅读(225) 评论(0) 推荐(0)
摘要: linker command failed with exit code一般是缺少 .a文件导致的或者没有引入,找到Build settings->Linking->Other Linker Flags,将此属性修改成-all_load再或者是文件重复了 阅读全文
posted @ 2013-07-22 12:01 wei8 阅读(175) 评论(0) 推荐(0)
摘要: 选中cell//选中第一分区的第一个cell 也可指定其它 cell[self.tableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] animated:NO scrollPosition:UITableViewScrollPositionNone];//取消选中状态[tableView deselectRowAtIndexPath:indexPath animated:NO]; cell 颜色 1.系统默认的颜色设置1 //无色2 cell.selectionStyle=UITableViewCel 阅读全文
posted @ 2013-07-22 11:53 wei8 阅读(275) 评论(0) 推荐(0)
摘要: //利用正则表达式验证-(BOOL)isValidateEmail:(NSString*)email//利用正则表达式验证-(BOOL)isValidateEmail:(NSString *)email{ NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}"; NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"SELFMATCHES%@",emailRegex]; return [email 阅读全文
posted @ 2013-06-28 10:59 wei8 阅读(271) 评论(0) 推荐(0)
摘要: 需要哪个viewController支持旋转,就要重写旋转方法。在IOS 6.0之前 只需要重写-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientationNS_DEPRECATED_IOS(2_0,6_0);但IOS 6.0 之后要重写两个方法了-(BOOL)shouldAutorotate;-(NSUInteger)supportedInterfaceOrientations;如果是含有UINavigationController、UITabBarController 阅读全文
posted @ 2013-06-07 21:38 wei8 阅读(317) 评论(0) 推荐(0)