Hello,
I've created a button when pressed will show a modal view but the problem now I don't know to to add a button in that view that will remove it and go back to the main view.
any help? thank you.
I've created a button when pressed will show a modal view but the problem now I don't know to to add a button in that view that will remove it and go back to the main view.
Code:
UIView *modalView = [[[UIView alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
modalView.opaque = NO;
modalView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.5f];
[self.view addSubview:modalView];
any help? thank you.