/CatDetailViewController

A way to keep your viewcontroller code compact

Primary LanguageObjective-CMIT LicenseMIT

CatDetailViewController

Build Status Version Platform License

Introduction

CatDetailViewController is a simple way to create detail information style viewcontrollers, such as text, date or table! CatDetailViewController can make your code compectly, new way to replace delegate!

ScreenShot

ScreenShots1

Installation

CatDetailViewController is available on CocoaPods. Just add the following to your project Podfile:

pod 'CatDetailViewController'

New Method and Properties

Method

-(instancetype)initChinaCityPickerViewWithTitle:(NSString *)title
                                     saveHandle:(void(^)(NSString *saveResult))saveHandle;

Properties

  • allowResultEmpty: A boolean value that the empty information alertview show(Default is NO)
  • emptyResultAlertViewMessage: The text for empty alertview message
  • enableConfirmAlertView: A boolean value that the confirm information alertview show(Default is NO)
  • saveConfirmAlertViewMessage: The text for save alertview message
  • saveConfirmAlertViewTitle: The text for save alertview title

Usage

#import "CatDetailViewController"

CatDetailViewController *detailView = [[CatDetailViewController alloc] initSingleSectionViewWithTitle:@"Select Color" sections:@[@"Red",@"Blue"] defaultSectionText:cell.detailTextLabel.text saveHandle:^(NSString *saveResult) {
	//Do anything you want
}];
[detailView detailViewShowOnViewController:self];

Note

CatDetailViewController is depend on UINavigationController, so don't forget it!