摘要: 在非系统预览情况下 指定文件打开系统分享菜单 NSString *savedPath = [NSHomeDirectory() stringByAppendingString:[NSString stringWithFormat:@"/Documents/%@",filname]]; NSFileM 阅读全文
posted @ 2016-03-01 16:09 frounk 阅读(134) 评论(0) 推荐(0) 编辑
摘要: U盘要且只分一个区 Mac OS 拓展(日志式) GUID分区表; 将“安装 OS X El Capitan” 放到 应用程序文件夹下 命令: sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createin 阅读全文
posted @ 2016-02-26 09:45 frounk 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 1、将aps_developer_identity.cer转换成aps_developer_identity.pem格式openssl x509 -in aps_developer_identity.cer -inform DER -out aps_developer_identity.pem -o 阅读全文
posted @ 2016-02-02 16:35 frounk 阅读(231) 评论(0) 推荐(0) 编辑
摘要: UIButton *cancelButton; UIView *topView = self.searchDisplayController.searchBar.subviews[0]; for (UIView *subView in topView.subviews) ... 阅读全文
posted @ 2016-01-22 13:41 frounk 阅读(326) 评论(0) 推荐(0) 编辑
摘要: [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(keyboardwillAppear:) name:UIKeyboardWillShowNotification object:nil]; [[NSNot 阅读全文
posted @ 2016-01-18 18:15 frounk 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 错误原因在于 AppDelegate 中 didFinishLaunchingWithOptions 结束前 未定义 rootViewController,Xcode7规定必须要有rootViewController。定义一个空UIViewController即可,添加如下代码解决:UIViewCo... 阅读全文
posted @ 2015-12-07 12:59 frounk 阅读(1725) 评论(0) 推荐(0) 编辑
摘要: -(NSString *) convertFileSize:(long long)size { long kb = 1024; long mb = kb * 1024; long gb = mb * 1024; if (size >= gb) { ret... 阅读全文
posted @ 2015-11-30 16:12 frounk 阅读(2117) 评论(0) 推荐(0) 编辑
摘要: openURL的使用方法:view plaincopy toclipboardprint?[[UIApplicationsharedApplication]openURL:[NSURLURLWithString:appString]];其中系统的appString有:1.Maphttp://maps... 阅读全文
posted @ 2015-10-12 14:21 frounk 阅读(1164) 评论(0) 推荐(0) 编辑
摘要: 手动安装gem手动下载 rubygemhttps://rubygems.org/pages/download#formats10.11 cocoapods安装 sudo gem install -n /usr/local/bin cocoapods 阅读全文
posted @ 2015-10-10 15:29 frounk 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 一、缩放1.简单说明:有些时候,我们可能要对某些内容进行手势缩放,如下图所示UIScrollView不仅能滚动显示大量内容,还能对其内容进行缩放处理。也就是说,要完成缩放功能的话,只需要将需要缩放的内容添加到UIScrollView中2.缩放原理当用户在UIScrollView身上使用捏合手势时,U... 阅读全文
posted @ 2015-09-24 09:45 frounk 阅读(193) 评论(0) 推荐(0) 编辑