Guest User

Untitled

a guest
Dec 9th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. #import "MainView.h"
  2.  
  3.  
  4. @implementation MainView
  5.  
  6. // The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
  7. /*
  8. - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
  9. self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
  10. if (self) {
  11. // Custom initialization.
  12. }
  13. return self;
  14. }
  15. */
  16.  
  17.  
  18. // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
  19. - (void)viewDidLoad {
  20. [super viewDidLoad];
  21. }
  22.  
  23. -(IBAction)btnRecord_Clicked
  24. {
  25.  
  26. RecordVoice *record=[[RecordVoice alloc]init];
  27.  
  28. record.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
  29. [self presentModalViewController:record animated:NO];
  30.  
  31.  
  32.  
  33.  
  34.  
  35. }
  36. -(IBAction)btnSetAlarm_Clicked
  37. {
  38. SetAlarm *alarm=[[SetAlarm alloc]init];
  39.  
  40. alarm.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
  41. [self presentModalViewController:alarm animated:NO];
  42.  
  43.  
  44.  
  45. }
  46.  
  47.  
  48.  
  49. -(IBAction)btnViewAlarm_Clicked
  50. {
  51.  
  52. ViewAlarm *viewAlarm=[[ViewAlarm alloc]init];
  53.  
  54. viewAlarm.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
  55. [self presentModalViewController:viewAlarm animated:NO];
  56.  
  57.  
  58.  
  59. }
  60.  
  61.  
  62.  
  63.  
  64. //-(IBAction)btnViewAlarm_Clicked;
  65. /*
  66. // Override to allow orientations other than the default portrait orientation.
  67. - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
  68. // Return YES for supported orientations.
  69. return (interfaceOrientation == UIInterfaceOrientationPortrait);
  70. }
  71. */
  72.  
  73. - (void)didReceiveMemoryWarning {
  74. // Releases the view if it doesn't have a superview.
  75. [super didReceiveMemoryWarning];
  76.  
  77. // Release any cached data, images, etc. that aren't in use.
  78. }
  79.  
  80. - (void)viewDidUnload {
  81. [super viewDidUnload];
  82. // Release any retained subviews of the main view.
  83. // e.g. self.myOutlet = nil;
  84. }
  85.  
  86.  
  87. - (void)dealloc {
  88. [super dealloc];
  89. }
  90.  
  91.  
  92. @end
Add Comment
Please, Sign In to add comment