Using presentViewController from UIView
问题 I am creating a title bar for my iOS application and I am making this inside a UIView. The only issue I am having is with the "home button". When the home button is pressed, it needs to go to the home page, which is ViewController. However, it doesn't look as if [self presentViewController:vc animated:NO completion:NULL]; works for UIView. How do I work around this problem ? - (void) createTitlebar { CGRect titleBarFrame = CGRectMake(0, 0, 320, 55); //Create the home button on the top right