redribben

subclass

Jan 28th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. //  BMSettings.m
  3. //  IBcells
  4. //
  5. //  Created by Bogdan Michalchuk on 1/28/15.
  6. //  Copyright (c) 2015 PDXRR. All rights reserved.
  7. //
  8.  
  9. #import "BMSettings.h"
  10.  
  11. @implementation BMSettings {
  12.     NSArray *settingArray;
  13. }
  14.  
  15.  
  16. @synthesize name;
  17. @synthesize detail;
  18. @synthesize setOn;
  19. @synthesize setOff;
  20. @synthesize preferred;
  21.  
  22. - (id) init
  23. {
  24.  
  25. // Create settings array
  26. BMSettings *setting1 = [BMSettings new];
  27. setting1.name = @"Live Call Confirmation";
  28. setting1.detail = @"An alert pops up and asks if you are sure that you would like to make to the studio";
  29. setting1.setOn = @"There will be a pop up that confirms that you really do wish to make the call";
  30. setting1.setOff = @"The call will go through right away";
  31.  
  32.  
  33. BMSettings *setting2 = [BMSettings new];
  34. setting2.name = @"Play On Launch";
  35. setting2.detail = @"The option to have Radio automatically start playing when the application launches";
  36. setting2.setOn = @"The radio will start playing when the application launches";
  37. setting2.setOff = @"The play button will need to have to be clicked for the audio to start playing";
  38.  
  39.  
  40. BMSettings *setting3 = [BMSettings new];
  41. setting3.name = @"Allow Landscape Orientation";
  42. setting3.detail = @"Enables the applications to be used in all orientations";
  43. setting3.setOn = @"The application could be used when the device is sideways";
  44. setting3.setOff = @"The application will only work in portrait style";
  45.  
  46.  
  47.  
  48. settingArray = [NSArray arrayWithObjects:setting1, setting2, setting3, nil];
  49.  
  50.     return self;
  51. }
  52.  
  53. @end
Advertisement
Add Comment
Please, Sign In to add comment