- 博客(9)
- 资源 (5)
- 收藏
- 关注
转载 一键横屏--------纠结了好久
竖屏点击按钮 旋转到横屏[[UIDevice currentDevice] setValue:[NSNumber numberWithInteger:UIDeviceOrientationPortrait] forKey:@"orientation"];//这句话是防止手动先把设备置为横屏,导致下面的语句失效. [[UIDevice currentDevice] setValue:[
2015-10-23 17:06:00 763
转载 升级Xcode7-directory not found for option
ld: warning: directory not found for option '-F/Applications/Xcode 7.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks'
2015-09-23 12:20:01 351
转载 iOS 修改webView字体大小,设置宽度及缩放效果
1.设置字体大小 -(void)webViewDidFinishLoad:(UIWebView *)webView{ [webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByTagName('body')[0].style.webkitTextSizeAdjust= '40%'"];//修改百分比
2015-09-10 15:30:31 2830
转载 CocoaPods中的头文件import导入时不能自动补齐的解决方法
下面是stackoverflow上的解决办法: Go to the Target > \”Build Settings\” tab and find the \”User Header Search Paths\” setting. Set this to \”$(BUILT_PRODUCTS_DIR)\” and check the \”Recursive\” che
2015-07-24 11:09:38 317
原创 Redundant binary upload..... IOS app上架提示错误
CFBundleVersion: 代表build number,必须每个包不同CFBundleShortVersionString: 发布版本号以上新包的CFBundleVersion递增就可以了。
2015-07-23 18:52:08 439
转载 对UITextField内容实时监听长度和内容
在UISearchBar中,当输入信息改变时,它就会调用textDidChange函数,但是UITextField没有这个功能,唯一与这个类似的shouldChangeCharactersInRange函数,也是在文件还没有改变前就调用了,而不是在改变后调用,要想实现这个功能,我们可以增加事件监听的方式,这个与java的listener类似.先来看看objective-c提供的接口://
2015-07-13 12:59:01 1292
转载 AF解析Json出错的时候 这样看提示信息
AF解析json出错: Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa error 3840.)" (JSON text did not start with array or object and option to allow fragments not se
2015-06-30 19:06:28 508
原创 IOS8下,令cell的分割线左右距离设置为0
-(void)viewDidLayoutSubviews{ if ([_NewList respondsToSelector:@selector(setSeparatorInset:)]) { [_NewList setSeparatorInset:UIEdgeInsetsMake(0,0,0,0)]; } if ([_NewList
2015-05-12 20:07:09 555
iOS_Animations_by_Tutorials_v3.1
2018-09-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人