也许面试官自己也没自己实现过,毕竟有些东西苹果为什么这样设计,若不是苹果公司的工程师无法知道。
对于继承UITableViewController,如果想更改tableview样式,请重写初始化方法:
其实,上述的方法可以将视图背景改成非透明色,比如红色。但改成透明的时候,还是会显示灰色,不是真正的透明。
info.plist文件中有个一项:View controller-based status bar appearance:
edit scheme —>run debug —>在Memory Management区域将Eanble Guard Malloc设置为不选中
https://stackoverflow.com/questions/24337791/exc-bad-instruction-code-exc-i386-i...
这里举一个大家都能看到和下载的例子,优秀的第三方图文混排框架:TYAttributedLabel。
警告的内容说明写着:-[UIView alpha] must be used from main thread only。
将libstdc++.dylib换成libstdc++.6.0.9.dylib即可
扫码关注云+社区
领取腾讯云代金券