CatDetailViewController 0.4.0

CatDetailViewController 0.4.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jan 2016

Maintained by Kcat.



  • By
  • K-cat

Introduction

CatDetailViewController is a quicker way to create a viewcontroller for different type information enter,such as text,date or table!CatDetailViewController can make your code compectly,and replace delegate way!

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!