-
Notifications
You must be signed in to change notification settings - Fork 0
/
CQFormViewController.h
58 lines (39 loc) · 1.48 KB
/
CQFormViewController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/**
Copyright (C) 2012 Quentin Mathe
Author: Quentin Mathe <[email protected]>
Date: June 2012
License: MIT
*/
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@class CQFormItem, CQFormView;
/**
* To disable UITableView selection support, CQFormViewControllers implements
* -tableView:shouldHighlightRowAtIndexPath:.
*
* For dynamic row heights based on the cell content (e.g. multiline text view
* or dynamic layouts), you can set -[UITableView rowHeight] to
* UITableViewAutomaticDimension on iOS 8. For supporting iOS 7, you can
* override -tableView:heightForRowAtIndexPath: to return a cell height
* dynamically computed rather than the initial cell height.
*/
@interface CQFormViewController : UIViewController <UITableViewDelegate>
/** @taskunit Accessing Form View */
@property (nonatomic, null_unspecified) IBOutlet CQFormView *formView;
/** @taskunit Presenting Child Controller */
/**
* Pushes the given item content view controller using the receiver navigation
* controller.
*
* For a nil content view controller or navigation controller, does nothing.
*
* If the pushed controller title is nil, the item label is used as title.
*
* See -[CQFormItem contentViewController] and -[CQFormItem label].
*/
- (BOOL)presentContentForItem: (CQFormItem *)item;
/** @taskunit Controlling Row Height */
- (CGFloat)tableView: (UITableView *)tableView heightForRowAtIndexPath: (NSIndexPath *)indexPath;
@end
NS_ASSUME_NONNULL_END