VLCNetworkLoginViewFieldCell.h 1.09 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/*****************************************************************************
 * VLC for iOS
 *****************************************************************************
 * Copyright (c) 2016 VideoLAN. All rights reserved.
 * $Id$
 *
 * Authors: Vincent L. Cone <vincent.l.cone # tuta.io>
 *
 * Refer to the COPYING file of the official project for license.
 *****************************************************************************/

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

extern NSString * const kVLCNetworkLoginViewFieldCellIdentifier;

@protocol VLCNetworkLoginViewFieldCellDelegate;

@interface VLCNetworkLoginViewFieldCell : UITableViewCell
@property (nonatomic, weak) id<VLCNetworkLoginViewFieldCellDelegate> delegate;
22
@property (nonatomic, retain) UITextField *textField;
23 24 25 26 27 28 29 30 31
@property (nonatomic, nullable, copy) NSString *placeholderString;
@end

@protocol VLCNetworkLoginViewFieldCellDelegate <NSObject>
- (BOOL)loginViewFieldCellShouldReturn:(VLCNetworkLoginViewFieldCell *)cell;
- (void)loginViewFieldCellDidEndEditing:(VLCNetworkLoginViewFieldCell *)cell;
@end

NS_ASSUME_NONNULL_END