This post is part of answer from StatckOverflow
void * means “a reference to some random chunk o’ memory with untyped/unknown contents”
id means “a reference to some random Objective-C object of unknown class”
This post is part of answer from StatckOverflow
void * means “a reference to some random chunk o’ memory with untyped/unknown contents”
id means “a reference to some random Objective-C object of unknown class”
iOS中的UIWebView不能响应window.close方法,如果碰到web页面中调用了这个方法,如何去截获这个方法呢?
在加载uiwebview时,uiwebview会根据网页中设定的width来layout内容,如果网页中的width设定不正确,就不能正确layout网页。例如渣浪微博的登录页面是设置的device width,iPhone上一般没有问题,但在ipad中的view就显示不正确。
在xcode中频繁使用的类库的头文件可以放入pch文件中,这样gcc会在预编译的过程中将头文件导入到每个.h 文件中。虽然import比include更加智能,但是似乎xcode中还是会遇到预编译错误提示,也一直困扰我很久。