iphone - SubViews not properly initialized using IB -


Using Interface Builder and I'm having trouble introducing yourself properly Sbwugh I have the following view hierarchy (UIWindow -> BlankCanvasView -> StalkerView) is BlankCanvasView is a sub-category is a IBOutlet of UIView and StalkerView BlankCanvasView

@ interface BlankCanvasView: UIView {

  IBOutlet UIView * hunter; I have established a connection between BlankCanvasView and the subview hunter outlet.  However, look at the black canvas method in my touch, the stoker outlet is zero. See below to touch. 

  - (touches zero) brinjal (Anssiti *) touches with Avant (Uaiivent *) event {Anselog (@ "Touch launched !!!"); NSLog (@ "stoker example% @", hunter); [UIView Start Permissions: @ "Stoker Animation" Reference: Zero]; UIT * touch = [touches any object]; // Stallur is here Neil !!! [Hunter set center: [touch in the previous locationView: Self]]; [UIView commitAnimations];  

}

What am I missing? It seems that none of my demo apps are properly loading any subview, when I try to follow the examples on iTunesU.

If you are building your 'hunters' view IB, it is part of the visual hierarchy it should be (which the other view is added as a Sbwu), or it must be maintained by your code to be issued using a retaining property after loading if you have your hunter variables , It will be automatically taken for you:

  @interface BlankCa NvasView: UIView {UIView * stalker; } @protecti (nontomic, retten) IBotlet UIView * Stoker; @end  

Make sure you modify the stallor; The implementation of your BlankCanvasView, and when you set you want to delete your view, property to zero:

  @implementation BlankCanvasView @ synthetize hunters; - (zero) Delok {self.stalker = nil; [Super DeLoc]; } @end  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -