FMPlayingListViewController.m 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // FMPlayingListViewController.m
  3. // FreeMusic
  4. //
  5. //
  6. #import "FMPlayingListViewController.h"
  7. @interface FMPlayingListViewController ()
  8. @end
  9. @implementation FMPlayingListViewController
  10. - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
  11. {
  12. self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
  13. if (self) {
  14. // Custom initialization
  15. }
  16. return self;
  17. }
  18. - (void)viewDidLoad
  19. {
  20. [super viewDidLoad];
  21. self.view.backgroundColor = [UIColor whiteColor];
  22. UIBarButtonItem * done = [[UIBarButtonItem alloc] initWithTitle:@"完成" style:UIBarButtonItemStyleDone target:self action:@selector(doneEvent)];
  23. self.navigationItem.rightBarButtonItem = done;
  24. // Do any additional setup after loading the view.
  25. }
  26. -(void)doneEvent
  27. {
  28. [self.navigationController dismissViewControllerAnimated:YES completion:^{
  29. }];
  30. }
  31. - (void)didReceiveMemoryWarning
  32. {
  33. [super didReceiveMemoryWarning];
  34. // Dispose of any resources that can be recreated.
  35. }
  36. /*
  37. #pragma mark - Navigation
  38. // In a storyboard-based application, you will often want to do a little preparation before navigation
  39. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
  40. {
  41. // Get the new view controller using [segue destinationViewController].
  42. // Pass the selected object to the new view controller.
  43. }
  44. */
  45. @end