InAppSettings为APP提供了Settings的快捷化构建,只需少量代码就可以实现复杂的设置界面,下面来阐述如何使用InAppSettings.

使用

  • 包含头文件
\#import "IASKAppSettingsViewController.h"
  • 添加Settings.bundle
"新建"->"Resource"->"Settings Bundle"
  • 初始化Controller并呈现
IASKAppSettingsViewController* vc = [[IASKAppSettingsViewController alloc] initWithNibName:@"IASKAppSettingsView" bundle:nil];
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:vc];
[self presentViewController:navController animated:YES completion:^{
    
}];

Settings.bundle

Settings.bundle至少包含一个Root.plist