
oc
XiaoDev
一个iOS开发工程师。
展开
-
iPhone密码管理
iPhone iPad 密码的安全管理软件安装包体积小,免费无广告!原创 2022-10-27 20:07:25 · 1033 阅读 · 0 评论 -
iOS13 WKWebView点击不跳转,没反应。
iOS13开始 WKWebView 去掉了cookie的自动推送功能,可以自己添加上。代码如下:if (@available(iOS 11.0, *)) { NSArray *cookies = [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies]; WKHTTPCookieStore *cookieSt...原创 2019-11-27 14:57:50 · 4339 阅读 · 0 评论 -
ios倒计时实现
//根据时间判读显示,10以下显示0*;- (NSString *)timeToBeStringWithInt:(NSInteger )time{ return time>=10?[NSString stringWithFormat:@"%d",time ]:[NSString stringWithFormat:@"0%d",time ];}//抢购读秒- (void原创 2015-04-12 13:57:51 · 473 阅读 · 0 评论 -
开发问题总结
1. -[UIImagePickerController respondsToSelector:]: message sent to deallocated instance 用完delegate=nil;2. linker command failed with exit code 1 (use -v to see 错误在Library Search Patch 中删除文件路径原创 2015-05-26 11:30:59 · 580 阅读 · 0 评论 -
This application is modifying the autolayout engine from a background thread, which can lead to engi
This application is modifying the autolayout engine from a background thread, which can lead to engi此问题是在非主线程里面布局了界面相关的代码,并且界面也会出现延迟的现象。解决办法是把界面相关的代码放到主线程里面来。所以用GCD回到主线程,然后就解决了这个问题。 dispatch_as原创 2016-01-12 21:11:45 · 888 阅读 · 0 评论 -
Object-C Swift C++代码相互调用。
Object-C调用Swift,创建Swift文件,然后在需要调用Swift文件的地方加上#import "工程名-Swift.h"Swift调用 Object-C创建Swift文件的时候,会出现问是否要创建Bridging-header.h.当然点击Yes。把你要引用的oc文件头文件写到里面就可以了。在Swift文件里就可以引用了。调用C++把Object-c文件改成原创 2015-05-11 15:33:30 · 3079 阅读 · 0 评论 -
ios _kCGColorSpaceITUR_709 dyld: Symbol not found: Referenced from: Expected in:
你遇到的这些应该都是崩溃的bug,找到那个提示的字符串,找到这个名词来自那个framework,在General=>Linked Frameworks and Librarles里面添加这个framework然后把Required改成Optional。再次运行应该就好了。Symbol not found: _kCGColorSpaceITUR_709添加CoreGraphics....原创 2018-03-31 15:57:26 · 1013 阅读 · 0 评论 -
pod search 出现问题
问题入校/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/user_interface/error_report.rb:135:in error_from_podfile': invalid byte sequence in UTF-8 (ArgumentError) from /Library/Ruby/Gems/2.3...原创 2019-05-15 14:23:03 · 1662 阅读 · 0 评论