xcode - IOS: class comunication -


i have problem:

i have firstviewcontroller , xib; inside xib there view , class paintingview (a class glpaint, it's not view controller it's view).

then in firstviewcontroller import "paintingview.h", if call method of pantingview don't work

in firstviewcontroller do, in viewdidload:

paintingview = [[paintingview alloc]init]; 

but inside ibaction do:

[paintingview method1];  

(where method1 in paintingview), don't work, why??? thanks

so:

inside xib there view , class paintingview

if it's uiview sub-class , it's inside of xib, assuming using iboutlet access it. do:

paintingview = [[paintingview alloc]init]; 

my question why? have instantiated in xib.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -