简体   繁体   中英

NSMatrix undeclared

I tried creating Radio Buttons using this example

Creating a Cocoa radio button programatically

I copy and pasted the code inside my loadView method, when I run build and compile I get NSMatrix undeclared.

Please advise, I have UIKit.h included in my .h file.

NSMatrix isn't available in UIKit (ie on iOS). you can look at UISegmentedControl for similar behaviour on iOS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM