2017-12-13 - 真机调试、唯一标识符、WKWebView

Read more   2017/12/13 posted in  工作总结

2017-12-12 - WKwebView 缓存和弹窗处理

Read more   2017/12/12 posted in  工作总结

2017-12-11 - WKWebView 隐藏状态栏和白名单

Read more   2017/12/11 posted in  工作总结

2017-12-09 - 证书打包

证书打包

  • 为了确保快速开发,自动选择证书一般是不勾选
  • 导入证书
  • debug 用dev
  • Release 用adhoc
2017/12/9 posted in  工作总结

2017-12-08 - Info.plist 纯代码和证书相关问题

Info.plist 文件报错

could not read data from '/Users/hjz/Desktop/我玩登录/2017-12-7/IPlay/IPlay/Info.plist': The file “Info.plist” couldn’t be opened because there is no such file.

修改了Info.plist的实际文件位置(项目和单元测试对应不同的Info.plist)

纯代码和 StoryBoard 的优缺点

  • 其实,你完全不需要做一个 “艰难的决定”,你可以像 QQ 和微信那样,根据具体情况来选择性的使用 xib 和 storyboard。一些建议:
# 对于复杂的、动态生成的界面,建议使用手工编写界面,但一定要注意view和业务层的分离

# 对于需要统一风格的按钮或UI控件,建议使用手工用代码来构造。增加复用性和通用性。

# 对于需要有继承或组合关系的 UIView 类或 UIViewController 类(例如baseview),建议用代码手工编写界面。

# 对于那些简单的、静态的、非核心功能界面,可以考虑使用 xib 或 storyboard 来完成。
                                                                                    _Hjz

所谓的智商情商

情商高的,智商不会低。

智商低的,情商不会高。

最后我想说的是,高智商的天才是不需要情商的。

因为天才和疯子是没有区别的,你不懂天才的世界就像你永远无法理解疯子的行为一样。

证书问题:

The certificate used to sign "IPlay" has either expired or has been revoked. 

An updated certificate is required to sign and install the application.
2017/12/8 posted in  工作总结

2017-12-07 - 报错 255 和 HTTP 权限问题

报错信息:failed with exit code 255

Command /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool failed with exit code 255
  • clean your project

  • delete the cached data (Organizer->Projects->Derived Data tap 'Delete...'

  • insure that for this XIB the proper

  • versioning is set (select XIB, 3rd Xcode tab on right, File options:
    close the project

  • quit Xcode

  • reopen Xcode, then the product

  • try again

Push 所要做的内容:

self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
self.window.backgroundColor = [UIColor whiteColor];
UINavigationController *nav= [[UINavigationController alloc]init];
self.window.rootViewController = nav;
    
ViewController  *rootView = [[ViewController  alloc] init];
[nav addChildViewController:rootView];
    
[self.window makeKeyAndVisible];

iOS 9 HTTP 请求报错:

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 file.
  • 解决方案:
1.在 Info.plist 中添加 NSAppTransportSecurity 类型 Dictionary。
2.在 NSAppTransportSecurity 下添加 NSAllowsArbitraryLoads 类型 Boolean, 值设为 YES
2017/12/7 posted in  工作总结