
ios
琪花亿草
哈哈哈,来关注我的公众号吧,公众号可以搜索bulutu , 微信号搜索bulutu_app~
展开
-
preferredFontForTextStyle中各个字体大小备忘
目前有的preferredFontForTextStyle各个字体输出设置系统字体大小的方法:设置-》辅助功能-》显示与文字大小-》更大字体-》打开“更大的辅助功能字体”,调整大小 //UIKIT_EXTERN UIFontTextStyle const UIFontTextStyleLargeTitle API_AVAILABLE(ios(11.0), watchos(5.0)) API_UNAVAILABLE(tvos); //UIKIT_EXTERN UIFontTextStyl原创 2020-07-30 18:13:31 · 1136 阅读 · 0 评论 -
自定义弹出框报错“_BSMachError Unable to insert COPY_SEND”
报错内容如下:2017-03-17 11:06:52.436666 TSG-Phone[48745:5416720] [Common] _BSMachError: port 8d03; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"2017-03-17 11:06:52.437357 TSG-Phone[487原创 2017-03-17 11:25:40 · 17544 阅读 · 2 评论 -
在对UITableView添加长按事件的时候,有的列表不响应长按
在对UITableView添加长按事件的时候,有的列表不响应长按原来的代码: UILongPressGestureRecognizer* longPressGr = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longPressToDo:)]; longPressGr原创 2017-03-17 11:30:06 · 683 阅读 · 0 评论 -
mac系统ios模拟器无法访问keychain
ios模拟器突然无法获取KeyChain了,在读取Keychain列表的时候,会报错如图,项目-->Capabilities-->开启Keychain Sharing原创 2017-03-17 13:38:07 · 931 阅读 · 0 评论 -
UICollectionView 修改点击后颜色
一般UICollectionView点击后会显示默认的透明色,希望修改为特定的颜色,最终发现是设置背景色的view设置错了,应该是:[cell.contentView setBackgroundColor:[UIColor redColor]]; 具体代码如下:- (BOOL)collectionView:(UICollectionView *)collectionView should...原创 2018-08-30 18:13:05 · 1902 阅读 · 0 评论 -
'select' must be imported from module 'Darwin.POSIX.sys.time'
报错:workspaceios/xxx/xxx/Utils/Utils.m:468:27: Declaration of 'select' must be imported from module 'Darwin.POSIX.sys.time' before it is required调用语句:struct timeval tm = {3, 0};fd_set wset,rse...原创 2018-08-29 11:50:39 · 5286 阅读 · 0 评论 -
报错:'NSUnknownKeyException', reason: TestViewController 0xxxxxx setValue:forUndefinedKey
调用语句:UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];TestViewController *viewController = [storyboard instantiateViewControllerWithIdentifier:@"TestViewController"];...原创 2018-09-05 10:47:11 · 1107 阅读 · 0 评论 -
更新到xcode 10 版本ios 12出现的问题
更新到xcode 10 版本ios 12出现的问题workspace编译时报错编译报错二workspace编译时报错报错具体如下:Showing Recent Messages:-1: Multiple commands produce '/Users/xxx/Library/Developer/Xcode/DerivedData/TestProject-apxxxxxxxxxxeqsvu...原创 2018-09-20 15:04:59 · 7243 阅读 · 0 评论 -
UITableView中添加按钮不响应问题——UITableViewCell绑定了错误的View
目录问题发现原因解决只是为了做个记录问题在某一特定型号和版本的实体机上,UITableView中添加按钮不响应问题,但是用了相同版本的模拟器都没有问题发现偶尔的一次在awakeFromNib中添加东西,发现会崩溃,当时就没管,在解决问题的时候突然想到这个问题,尝试了一些,就发现了UITableViewCell类绑定了两个View原因UITableViewCell绑定了错误的View,...原创 2018-11-09 10:49:26 · 636 阅读 · 0 评论 -
ios的Extension由OC改为Swift时报错:NSInvalidArgumentException
问题:ios中在创建了一个target,写extension的时候,主文件本来用的OC语言,想要换成Swift语言,会报如下错误,而且extension运行不起来,报错:默认 13:47:27.970240+0800 testExtension *** Terminating app due to uncaught exception 'NSInvalidArgumentExcept...原创 2019-07-18 14:28:12 · 740 阅读 · 0 评论 -
_NSCFString格式转NSString
1 _NSCFString格式转NSString注意 此处直接使用NSString的 stringWithString 方法是不行的代码:user.userName = [NSString stringWithFormat:@"%@",user.name];2 判断_NSCFString格式代码: if([[NSString stringWithForm原创 2017-03-16 18:06:09 · 10861 阅读 · 0 评论 -
WKWebView调用window.open(url,"_blank”);没有反应的问题
在使用WKWebView的时候,网页调用window.open(url,"_blank”);发现没有任何响应,也没有调用任何回调,即便写了createWebViewWithConfiguration方法也没用,最终找到原因是没有设置:preferences.javaScriptCanOpenWindowsAutomatically = YES;最终解决的代码:初始化代码:W原创 2017-02-07 17:20:52 · 9575 阅读 · 0 评论 -
appstore审核的那些事 --2. IPv6环境下的支持
AppStore审核的时候反馈:We discovered one or more bugs in your app when reviewed on iPad and iPhone running iOS 10.2 on Wi-Fi connected to an IPv6 network.因此我需要修改IPv6环境下的支持。使用了socket的时候仅支持了IPv41.在网络原创 2017-01-06 11:21:23 · 538 阅读 · 0 评论 -
xcode 运行时报错:“Launch screens may not set custom class names”
xcode 运行时报错:“Launch screens may not set custom class names”原因:使用了原来的项目生成的LaunchScreen.storyboard,在LaunchScreen.storyboard中设置Custom Class为自己的ViewController。解决方法:不要使用生成的LaunchScreen.stor原创 2016-03-04 14:15:19 · 12687 阅读 · 1 评论 -
xcode报错 library not found for -lAFNetworking
原因:找不到库AFNetworking解决方法:1. 如果没有安装pod,则安装pod,并导入项目AFNetworking参考:http://www.jianshu.com/p/6e5c0f78200a2. 如果还是找不到库AFNetworking,则看一下是不是用 “项目名称.workspace” 打开的需要先关掉当前打开的项目,然后用 “项目名称.works原创 2016-03-04 14:39:23 · 9010 阅读 · 0 评论 -
报错:Xcode 7.3 cannot create __weak reference in file using manual reference counting
在使用__weak 的时候报错 Xcode 7.3 cannot create __weak reference in file using manual reference counting解决方法一:设置项目中的build setting -> Apple LLVM7.1 - Language - Objective C -> Weak References in Manual原创 2016-05-04 15:02:53 · 2405 阅读 · 0 评论 -
ios导入静态库时报错:"_OBJC_CLASS_$_"
报错:"_OBJC_CLASS_$_" ld: warning: ignoring file test/libXXX.a, file was built for archive which is not the architecture being linked (x86_64): test/libXXX.aUndefined symbols for architecture x86_64:原创 2016-07-06 15:17:27 · 6497 阅读 · 0 评论 -
ios中framework 运行测试提示test failed
ios中在写framework 需要测试 但是运行测试提示test failed,并且报下面的错误2016-07-06 20:46:12.977 xctest[32953:2574013] The bundle “XXXsdkTests” couldn’t be loaded because it is damaged or missing necessary resources. Try r原创 2016-07-06 20:54:44 · 4767 阅读 · 0 评论 -
ios中写framework并调用的方法以及所遇到的问题
1.写一个framework1)新建一个frameworkfile->new->project ->framework&library->cocoa touch framework2) 2.遇到的问题原创 2016-07-07 18:16:59 · 9418 阅读 · 0 评论 -
UITableView中点击UIImageView,但是图片大小改变的问题
问题:在UITableView中自定义了一个UITableViewCell,里面有一个Label和ImageView,问题是在点击这个Table的这一条时,imageview的大小改变了。设置imageview的背景为红色,发现不是图片的大小改变,而是整个UIimageview的大小改变了。原因:找了很多问题,终于发现自定义的UITableViewCell变量名命名出了问题,我把这原创 2016-12-23 10:29:39 · 1139 阅读 · 0 评论 -
xcode编译时由于函数重复导致的问题
xcode编译时由于函数重复导致的问题polarssl与libtomcrypt某个函数冲突的问题现象:说明:我的程序分为主程序和sdk程序(framework),sdk中包括polarssl库(源文件)、libtomcrypt库(.a静态库文件)问题一:当都在framework中添加lib,在主程序中不添加libtomcrypt,则在使用polarssl库的ssl握手的时候原创 2016-12-23 11:06:14 · 1573 阅读 · 0 评论 -
appstore审核的那些事 --1. 卡死在:正在通过 iTunes Store进行鉴定
卡死在:正在通过 iTunes Store进行鉴定使用ApplicationLoader使用ApplicationLoader上传的时候会卡死到这(正在通过 iTunes Store进行鉴定),然后尝试使用xcode上传,看起来会快一些(里面各种提示蹦的快,给结果也快),xcode上传xcode上传的结果是:Unable to process app at this time原创 2016-12-23 11:09:27 · 16159 阅读 · 0 评论 -
appstore审核的那些事--报错:ERROR ITMS-4236: "Invalid value 'v1.0.0' for bundle_short_version_string" at So
报错:ERROR ITMS-4236: "Invalid value 'v1.0.0' for bundle_short_version_string" at SoftwareAssets解决方法:我的Version设置为了v1.0.0,而正确的格式是:x.x.x,不能带前面的v,因此改为1.0.0就没有这个问题了原创 2016-12-23 11:10:49 · 4693 阅读 · 0 评论 -
安装Cocoapods 报错ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/fuzzy
在运行 “sudo gem install cocoapods” 的时候出现问题:ERROR: While executing gem ... (Errno::EPERM)Operation not permitted - /usr/bin/fuzzy_match则可以改为:sudo gem install -n /usr/local/bin cocoapods原创 2016-03-04 14:14:10 · 13750 阅读 · 2 评论