title: Calling NSObject superclass method with [self performSelector:@selector]?
body: <p>I have a Subclass of NSObject in which I want to call IMMEDIATELY (a sort of -(void)viewDidLoad) a method (in this case to load a MkMapView): what's the better way to do this? I think I cant use viewDidLoad, so can I use performSelector?</p>
  
  <pre><code>SubClass.h
  
  @interface Mysubclass : NSObject &lt;MKMapViewDelegate&gt; {
  }
  </code></pre>
  
  <p>SubClass.m (1st alternative)</p>
  
  <pre><code>-(id)init{
   self = [super init];
   if ( self != nil ) {
   // THE CODE TO INITIALIZE MKMAPVIEW
  }
  return self
  }
  </code></pre>
  
  <p>OR
  SubClass.m (2nd alternative)</p>
  
  <pre><code>-(id)init{
   [self performSelector:@selector(myMethod)];
   return self;
  }
  
  -myMethod{
   // THE CODE TO INITIALIZE MKMAPVIEW
  }
  </code></pre>
  
  <p>What's the better (or correct) alternative? Its possible to avoid -(id)init? Or everytime I add a subclass, to call a method I have to write it into -(id)init? Thank you!</p>