Skip to content

Instantly share code, notes, and snippets.

@ChrisRisner
Created September 27, 2012 05:23
Show Gist options
  • Save ChrisRisner/3792292 to your computer and use it in GitHub Desktop.
Save ChrisRisner/3792292 to your computer and use it in GitHub Desktop.
iOS Day 4
- (IBAction)tappedCloseModal:(id)sender {
[self.navigationController popViewControllerAnimated:YES];
}
#import <UIKit/UIKit.h>
@interface SecondViewController : UIViewController
@end
#import "SecondViewController.h"
@interface SecondViewController ()
@end
@implementation SecondViewController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
#import <UIKit/UIKit.h>
@interface SecondViewController : UIViewController
- (IBAction)tappedCloseModal:(id)sender;
@end
- (IBAction)tappedCloseModal:(id)sender {
[self dismissModalViewControllerAnimated: YES];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment