text: //
  //  PlayerDetailsViewController.h
  //  StoryBoardDemo
  //
  //  Created by choushayne on 14/12/25.
  //  Copyright (c) 2014年 ShayneChow. All rights reserved.
  //
  
  #import <UIKit/UIKit.h>
  #import "GamePickerViewController.h"
  #import "Player.h"
  
  @class PlayerDetailsViewController;
  
  @protocol PlayerDetailsViewControllerDelegate <NSObject>
  - (void)playerDetailsViewControllerDidCancel:(PlayerDetailsViewController *)controller;
  - (void)playerDetailsViewController:(PlayerDetailsViewController *)controller didAddPlayer:(Player *)player;
  @end
  
  @interface PlayerDetailsViewController : UITableViewController<GamePickerViewControllerDelegate>
  
  @property (weak, nonatomic) IBOutlet UITextField *nameTextField;
  @property (weak, nonatomic) IBOutlet UILabel *detailLabel;
  
  @property (nonatomic, weak) id <PlayerDetailsViewControllerDelegate> delegate;
  
  - (IBAction)cancel:(id)sender;
  - (IBAction)done:(id)sender;
  - (IBAction)TextField_DidEndOnExit:(id)sender;
  
  @end
  