I tried to use NSHost and XCode didn't recognize it

最后都变了- 提交于 2019-12-12 02:28:45

问题


I tried to add an NSHost method and XCode didn't recognize it.

Do you know why this happened?


回答1:


Your question is tagged with iPhone; NSHost is not available on the iPhone. NSHost is Mac OS X only.

Here is an alternative solution to using NSHost: Alternatives to NSHost in iPhone app




回答2:


NSHost is not supported for iPhone. Read apple's technical note

http://developer.apple.com/library/ios/#qa/qa1652/_index.html




回答3:


iPhone SDK does not support NSHost. But you can use this alternative Objective-C custom class instead.



来源:https://stackoverflow.com/questions/5450471/i-tried-to-use-nshost-and-xcode-didnt-recognize-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!