I tried to use NSHost and XCode didn't recogni

2019-08-29 20:48发布

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

Do you know why this happened?

3条回答
啃猪蹄的小仙女
2楼-- · 2019-08-29 21:14

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

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

查看更多
Summer. ? 凉城
3楼-- · 2019-08-29 21:18

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

查看更多
Anthone
4楼-- · 2019-08-29 21:31

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

查看更多
登录 后发表回答