I’m trying to add an UIViewController that i created, but i want it to be a half of the screen size.
I’m using this code:
myController *tmController = [[myControlleralloc] initWithNibName:@"myController" bundle:nil];
tmController .view.frame = CGRectMake(10, 100, 100, 100);
[appDelegate.viewController presentModalViewController:tmController animated:YES];
but i see it on all the screen, what is wong with my code?
hi you can achieve this by category file…..
.h file :
.m file:
and the call statement….
see the example project Here