title: PresentViewController takes a lot of time
body: <p>I have a really strange situation: a view controller, called by <code>presentViewController</code> takes a lot of time to load. I mean that <em>preparation</em> stage takes a lot of time, though whole animation performed quickly. Going back from the presented controller to the previous one is fine.</p>
  
  <p>What clues to I have? </p>
  
  <p>First af all, I <em>prepared</em> my next view controller in first <code>viewWillAppear</code>:</p>
  
  <pre><code>METAddEventViewController *controller = [self.storyboard 
  instantiateViewControllerWithIdentifier:@"addEventView"];
  
  self.nextController =
  [[UINavigationController alloc] initWithRootViewController:controller];
  </code></pre>
  
  <p>Where <code>self.nextController</code> is nonatomic and strong. </p>
  
  <p>So, my method that calls the next controller is pretty simple:</p>
  
  <pre><code>- (IBAction)addMeetingButtonPressed:(id)sender {
  [self.addMeetingButton setImage:[UIImage imageNamed:@"addMeeting-pressed@2x.png"] forState:UIControlStateNormal];
  
  [self presentViewController:self.nextController animated:YES completion:^{
      NSLog(@"Completed");
  }]; 
  }
  </code></pre>
  
  <p><code>METAddEventViewController</code> is just a <code>UITableViewController</code> with static cells of 4: 2 Basic cells, 1 cell with <code>UIDatePicker</code> and 1 with <code>UITextView</code>.</p>
  
  <p>So, my <code>viewDidLoad</code> and <code>viewWillAppear</code>:</p>
  
  <pre><code>- (void)viewDidLoad
  {
  self.appointMeetingButton.enabled = NO;
  
  self.title = @"Create Meeting";
  
  self.commentaryView.delegate = self;
  
  [super viewDidLoad];
  }
  
  - (void)viewWillAppear:(BOOL)animated
  {
  [super viewWillAppear:animated];
  [[self navigationController] setNavigationBarHidden:NO animated:NO];
  self.commentaryView.text = @"Enter comment for the meeting if needed";
  self.commentaryViewFilled = NO;
  self.commentaryView.textColor = [UIColor lightGrayColor];
  [[NSNotificationCenter defaultCenter] addObserver:self
                                           selector:@selector(updateSelectedPersonCalled:)
                                               name:@"updateSelectedPersonLabel"
                                             object:nil];
  
  [[NSNotificationCenter defaultCenter] addObserver:self
                                           selector:@selector(updateSelectedPersonCalled:)
                                               name:@"updateSelectedLocationLabel"
                                             object:nil];
  
  
  [self.datePicker addTarget:self action:@selector(meetingAppointable) forControlEvents:UIControlEventValueChanged];
  
  }
  </code></pre>
  
  <p>I ran Profiling and noticed that the most time consuming operations are allocation ones. Though, both <code>viewDidLoad</code> and <code>viewWillAppear</code> of <code>METAddEventController</code> are fine - about 10 ms. Most of the time in <em>them</em> takes configuring <code>self.commentaryView</code></p>
  
  <p>What can I do? Which additional information can I present to find the solution?</p>