zhPopupController


项目主页    by: snail-z     Star:    Fork:     

zhPopupController

Language Version License Platform

Popup your custom view is easy, support custom mask style, transition effects and gesture to drag.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Requires iOS 7.0 or later
  • Requires Automatic Reference Counting (ARC)

Installation

zhPopupController is available through CocoaPods. To install it, simply add the following line to your Podfile:

platform :ios, '7.0'
use_frameworks!

target 'You Project' do
    
	pod 'zhPopupController', '~> 0.1.2'
    
end

Preview

Usage

  • Direct use of zh_popupController popup your custom view.
    [self.zh_popupController presentContentView:customView];
  • Customize.
    self.zh_popupController = [[zhPopupController alloc] init];
    self.zh_popupController.layoutType = zhPopupLayoutTypeLeft;
    self.zh_popupController.allowPan = YES;
    // ...
    [self.zh_popupController presentContentView:customView];

Author

snail-z, haozhang0770@163.com

License

zhPopupController is available under the MIT license. See the LICENSE file for more info.

相关文章