project_files/HedgewarsMobile/Classes/EditableCellView.h
changeset 3659 f8d5ac50e307
child 3660 bc125bea5849
equal deleted inserted replaced
3658:113cb9345be1 3659:f8d5ac50e307
       
     1 //
       
     2 //  WeaponCellView.h
       
     3 //  Hedgewars
       
     4 //
       
     5 //  Created by Vittorio on 03/07/10.
       
     6 //  Copyright 2010 __MyCompanyName__. All rights reserved.
       
     7 //
       
     8 
       
     9 #import <UIKit/UIKit.h>
       
    10 
       
    11 @protocol EditableCellViewDelegate <NSObject>
       
    12 
       
    13 -(void) saveTextFieldValue:(NSString *)textString;
       
    14 
       
    15 @end
       
    16 
       
    17 @interface EditableCellView : UITableViewCell <UITextFieldDelegate> {
       
    18     id<EditableCellViewDelegate> delegate;
       
    19     UITextField *textField;
       
    20 }
       
    21 
       
    22 @property (nonatomic,assign) id<EditableCellViewDelegate> delegate;
       
    23 @property (nonatomic,retain,readonly) UITextField *textField;
       
    24 
       
    25 -(void) replyKeyboard;
       
    26 -(void) cancel:(id) sender;
       
    27 -(void) save:(id) sender;
       
    28 
       
    29 @end