Monday, 6 September 2010
Distribute application wirelessly
Sunday, 5 September 2010
ModalViewController full screen solution
-(void)showModalViewController{
ModalViewControllerView *modelViewController=[[ModalViewControllerView alloc] initWithNibName:@"ModalViewControllerView" bundle:nil andmainView:mainViewController];
[ModalViewControllerView.view setBackgroundColor:[UIColor clearColor]];
[self presentModalViewController: ModalViewControllerView animated:YES];
}
now, in ModalViewControllerView class, add these lines to the init method
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil andmainView:mainViewController{
if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
// send the mainView back to work as a background
[self.view sendSubviewToBack:mainViewController.view];
// it takes sometime to load the view. So, using NSTimer to load it
NSTimer *timer=[NSTimer scheduledTimerWithTimeInterval:0.42 target:self selector:@selector(add) userInfo:nil repeats:NO];
}
return self;
}
-(void)add{
// Using the following lines, it'll allow you to to interaction with the mainView even when there is a ModalViewController in the front
[self.view addSubview:mainViewController.view];
[self.view sendSubviewToBack:mainViewController.view];
}
have a nice time!!!
Saturday, 4 September 2010
Who we are?
Wait out solutions...