Monday, 6 September 2010

Distribute application wirelessly

Sunday, 5 September 2010

ModalViewController full screen solution

One of the main problems that faces iPhone or iPad developers is that they can't present a modal view controller to a specific area of the screen. Here we present a good solution for that problem.

In the mainViewController class, we have a function called the ModelViewController.


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;



// 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?

This blog is to find smart solutions to problems faces iPhone & iPad developers.
Wait out solutions...