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