开发者

Cant Connect The UIButton or UIImageView in Interface Builder

开发者 https://www.devze.com 2023-02-13 13:17 出处:网络
i have 2 buttons a开发者_开发百科nd an image view that i am trying to connect in the interface builder. when i connect them to their respective IBoutlets the program crashes.crashes when you actually

i have 2 buttons a开发者_开发百科nd an image view that i am trying to connect in the interface builder. when i connect them to their respective IBoutlets the program crashes.


crashes when you actually connect them or when you run the project? im assuming you have the objects defined in you r .h file correct. what is the output on the console? need more info!


With assistant editor in Xcode, have the xib file and your .h file open in both windows, then control drag from your xib file the button and view to the .h file to connect them.

0

精彩评论

暂无评论...
验证码 换一张
取 消