2 // IASKAppSettingsViewController.h
3 // http://www.inappsettingskit.com
6 // Luc Vandal, Edovia Inc., http://www.edovia.com
7 // Ortwin Gentz, FutureTap GmbH, http://www.futuretap.com
8 // All rights reserved.
10 // It is appreciated but not required that you give credit to Luc Vandal and Ortwin Gentz,
11 // as the original authors of this code. You can give credit in a blog post, a tweet or on
12 // a info page of your app. Also, the original authors appreciate letting them know if you use this code.
14 // This code is licensed under the BSD license that is available at: http://www.opensource.org/licenses/bsd-license.php
17 #import <UIKit/UIKit.h>
19 @class IASKSettingsReader;
20 @class IASKAppSettingsViewController;
22 @protocol IASKSettingsDelegate
23 - (void)settingsViewControllerDidEnd:(IASKAppSettingsViewController*)sender;
27 @interface IASKAppSettingsViewController : UIViewController <UITextFieldDelegate, UINavigationControllerDelegate> {
28 id<IASKSettingsDelegate> _delegate;
29 IBOutlet UITableView *_tableView;
31 NSMutableArray *_viewList;
32 NSIndexPath *_currentIndexPath;
33 NSIndexPath *_topmostRowBeforeKeyboardWasShown;
35 IASKSettingsReader *_settingsReader;
38 id _currentFirstResponder;
40 BOOL _showCreditsFooter;
44 @property (nonatomic, assign) id delegate;
45 @property (nonatomic, retain) NSIndexPath *currentIndexPath;
46 @property (nonatomic, retain) IASKSettingsReader *settingsReader;
47 @property (nonatomic, copy) NSString *file;
48 @property (nonatomic, retain) id currentFirstResponder;
49 @property (nonatomic, assign) BOOL showCreditsFooter;
50 @property (nonatomic, assign) BOOL showDoneButton;
52 - (IBAction)dismiss:(id)sender;
54 // subclassing: optionally override these methods to customize appearance and functionality
55 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
56 - (NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath;
57 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;