- 博客(8)
- 收藏
- 关注
转载 多种方法对iOS数组中的元素去重复
例如: 123 NSArray *array = @[@"12-11", @"12-11", @"12-11", @"12-12", @"12-13", @"12-14"]; 参考答案:第一种方法:开辟新的内存空间,然后判断是否存在,若不存在则添加到数组中,得到最终结果的
2016-10-11 16:02:40
10960
原创 iOS开发如何禁止手机屏幕旋转
在工程-->target-->general里面找到Depolyment Info,里面有个device o rientation,里面第一个点上,其他的都取消就是默认竖屏了如图:如果我其中某个界面要用到横屏呢,是否有代码可以实现?有一个系统的方法在默认竖屏的情况下 -(NSUInteger)supportedInterf
2016-09-21 11:48:49
3488
转载 objc[2213]: Class _NSZombie_BSXPCMessage is implemented in both ?? and ??. One of the two will be us
程序运行出现:objc[2213]: Class _NSZombie_BSXPCMessage is implemented in both ?? and ??. One of the two will be used. Which one is undefined.1、增加[locationManager requestAlwaysAuthorization]或者[locat
2016-09-21 11:46:52
1217
原创 支付宝SDK报警告:warning: (arm64) /Users/scmbuild/workspace/standard-pay/.....警告问题
直接来解决办法:
2016-09-21 11:42:42
615
原创 iOS开发 解除警告:object file was built for newer iOS version (9.0) than being linked (7.0)
项目在加入语音录制和播放语音功能,添加了lame.framework库,功能完成之后,发现出现了好多的警告,但是不影响功能!想消除这些警告的办法如下:ld: warning: object file (/Users/.../lame.framework/lame(VbrTag.o)) was built for newer iOS version (9.0) than being linked (7.0)
2016-09-21 11:29:20
9294
1
转载 iOS开发_从一个带有空格和特殊符号的字符串里提取数字即手机号的方法
最近做调用手机通讯录,有的号码调取之后会有空格或者“-”和“+86”等特殊符号,先把“+86”替换成“”,然后在剩下的字符串使用如下方法,即可提取数字及手机号;替换“+86”方法:truePhone = [phoneStr stringByReplacingOccurrencesOfString:@"+86" withString:@""];从字符串中提取数字即手机号的方法
2016-05-06 11:02:48
3579
原创 iOS开发_textField的placeholder属性的字体颜色、大小的设置
textField.placeholder = @"大保罗的iOS历程"; [textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"]; [textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placehol
2015-09-24 22:51:29
414
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人