![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS
OnMyWayHaha
这个作者很懒,什么都没留下…
展开
-
ios 调用系统相机为英文时的更改
使用UIImagePickerViewController调用系统相机,当系统相机按钮为英文时。在 info.plist 中添加 Localization native development region(设置APP语言) 一项,值填 China .或者是添加另一项 Localized resources can be mixed YES.经过我的测试,两种都可以是英文变为中文原创 2016-12-29 16:51:25 · 1321 阅读 · 1 评论 -
iOS 通过CGImageRef来进行图片的截取、裁剪
当我们想得到一张图的某一个部分的时候,可以使用CGImgaeRef来进行截图操作。1. 首先了解CGImageRef:CGImageRef: 位图的基本概念,可以点击看他的源码,是用C语言定义的。 可以通过它来创建像素位图,通过操作储存像素位图已达到裁剪图片的目的。 UIImage *originalImage = [UI原创 2016-12-30 17:48:24 · 2079 阅读 · 0 评论 -
ios获取设备基本信息
转载自http://blog.csdn.net/u013935547/article/details/51782810转载 2017-03-08 16:31:51 · 367 阅读 · 0 评论 -
iOS could not load any Objective-C class information
warning: could not load any Objective-C class information. This will significantly reduce the quality of type information available.出现这种警告应该就是循环引用的问题了。好好查看一下断点处的代码。找到循环引用的地方更改掉就可以了。就比如 :原创 2017-03-20 10:49:16 · 559 阅读 · 0 评论 -
ios UIAlertActionStyle样式
typedef NS_ENUM(NSInteger, UIAlertActionStyle) { UIAlertActionStyleDefault = 0, // 默认样式 UIAlertActionStyleCancel, // 取消样式 UIAlertActionStyleDestructive // 点击按钮为红色} NS_ENUM_AV原创 2016-12-27 09:55:48 · 7517 阅读 · 1 评论 -
ios swift tableView 刷新某一行某一组,及UITableViewRowAnimation
// OC 刷新tableView的行和组 //刷新某些行,传入一个indexPath的数组(可以刷新多行) NSIndexPath *indexPath = [NSIndexPathindexPathForRow:3inSection:0]; [self.tableViewreloadRowsAtIndexPaths:@[indexPath]with原创 2017-06-20 09:34:23 · 14912 阅读 · 0 评论 -
swift 去除字符串中首尾位置的空格
var originalStr = " woqu haha "let afterStr = originalStr.trimmingCharacters(in: characterSet.whiteSpaces)// afterStr = "woqu haha"原创 2017-08-30 14:22:54 · 2974 阅读 · 0 评论 -
Xcode打包ipa所在位置
/Users/kaixuan/Library/Developer/Xcode/Archives// 注意将路径中的前两个 /Users/kaixuan 更换成自己 电脑对应的路径原创 2017-12-13 16:29:14 · 5114 阅读 · 0 评论 -
iOS配置允许HTTP请求
在info.plist里面增加App Transport Security Settings 属性再在此属性内增加 Allow Arbitrary Loads ,并设置值未YES。原创 2018-07-05 14:23:51 · 19054 阅读 · 0 评论