redribben

BMSetting

Jan 31st, 2015
247
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. @synthesize name;
  16. @synthesize detail;
  17. @synthesize setOn;
  18. @synthesize setOff;
  19. @synthesize SKey;
  20.  
  21. - (NSArray *)getArray {
  22. // Create settings array
  23. BMSettings *setting1 = [BMSettings new];
  24. setting1.name = @"Live Call Confirmation";
  25. setting1.detail = @"An alert pops up and asks if you are sure that you would like to make to the studio";
  26. setting1.setOn = @"There will be a pop up that confirms that you really do wish to make the call";
  27. setting1.setOff = @"The call will go through right away";
  28. setting1.SKey = @"Call Alert";
  29.  
  30.  
  31. BMSettings *setting2 = [BMSettings new];
  32. setting2.name = @"Play On Launch";
  33. setting2.detail = @"The option to have Radio automatically start playing when the application launches";
  34. setting2.setOn = @"The radio will start playing when the application launches";
  35. setting2.setOff = @"The play button will need to have to be clicked for the audio to start playing";
  36. setting2.SKey = @"AutoPlay";
  37.    
  38.  
  39. BMSettings *setting3 = [BMSettings new];
  40. setting3.name = @"Allow Landscape Orientation";
  41. setting3.detail = @"Enables the applications to be used in all orientations";
  42. setting3.setOn = @"The application could be used when the device is sideways";
  43. setting3.setOff = @"The application will only work in portrait style";
  44. setting3.SKey = @"Orientation";
  45.  
  46.  
  47. //settingArray = [NSArray arrayWithObjects:setting1, setting2, setting3, nil];
  48.  
  49.     return [NSArray arrayWithObjects:setting1, setting2, setting3, nil];
  50. }
  51.  
  52. @end
Advertisement
Add Comment
Please, Sign In to add comment