- 博客(10)
- 收藏
- 关注
转载 Assets.xcassets:-1: Failed to find a suitable device for the type IBSimDeviceTypeiPad2x
Assets.xcassets:-1: Failed to find a suitable device for the type IBSimDeviceTypeiPad2x 不知道assets发生了什么~~可能是我直接从另一个的项目拷贝进来的assets 方案一: 重启治百病 方案二: 1. kill模拟器进程 sudo killall -9 com.apple.CoreS...
2019-08-29 13:57:00
266
转载 stdc++.6.0.9动态库缺失
问题 ld: library not found for -lstdc++.6.0.9 clang: error: linker command failed with exit code 1 (use -v to see invocation) 官方解释 Xcode更新后没有这个库了,可是老的代码依赖了这个库,所以要从Xcode1...
2019-08-28 13:50:00
412
转载 iOS AOP实战
AOP: 面向切面编程,偏向于处理业务的某个阶段 适用场景: 1. 参数校验:网络请求前的参数校验,返回数据的格式校验等等 2. 无痕埋点:统一处理埋点,降低代码耦合度 3. 页面统计:帮助统计页面访问量 4. 事务处理:拦截指定事件,添加触发事件 5. 异常处理:发生异常时使用面向切面的方式进行处理 6. 热修复:AOP可以让我们在某方法执行前后或...
2019-08-25 13:45:00
249
转载 解决警告“ld: warning: directory not found for option
因为已经把文件编译到项目中,删除的话会出现找不到文件或文件夹的警告。 1选择工程, 编译的 (targets) 2选择 Build Settings 菜单 3查找 Library Search Paths 和 Framework Search Paths, 删掉编译报warning的路径即OK Library Search Paths Framework Se...
2016-11-23 16:36:00
322
转载 在Mac OS X 下快速安装Nginx
1 安装brew—brew是Mac OS X 下的软件管理工具 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 2 安装nginx brew install nginx 自动会安装pcre和ssl等依赖库。 3 看看...
2016-11-12 17:01:00
106
转载 升级Xcode8控制台打印出来这些东西
升级Xcode 8之后每次控制台都会出现以下情况: subsystem: com.apple.BackBoardServices.fence, category: App, enable_level: 1, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable...
2016-10-24 09:36:00
104
转载 切换根控制器
Incompatible pointer types assiging to "UIViewController" *_Nullable' from 'AppDelegate*' 本人遇到此问题的情况:在AppDelegate.h中判断版本号时,进行跳转引导页或主控制器。 self.window.rootViewController =[self initRootV...
2016-09-06 22:01:00
118
转载 ios导航器跳转动画
出栈或压栈简单实现动画 CATransition *animation1=[CATransition animation];//类方法创建一个切换对象 animation1.duration=0.45;//动画持续时间 animation1.type=@"cube";//动画效果 // rippleEffect。波浪效果 // cube。立方体效果 ...
2016-08-17 09:25:00
116
转载 Xcode使用HTTP配置
Xcode7 出现获取网络请求时出现如下异常: App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist fi...
2016-08-03 13:29:00
195
转载 OC编码问题输出中文
#import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { @autoreleasepool { NSMutableArray *arr=[NSMutableArray arrayWithObjects:@"中文",@"英文",@"编码", nil]; ...
2016-07-21 22:28:00
225
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人