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
Post a Comment