All Projects → HeathWang → Hwpopcontroller

HeathWang / Hwpopcontroller

Licence: mit
pop up your ViewController with custom size, position and animations

Projects that are alternatives of or similar to Hwpopcontroller

Nativepopup
Clone of Apple iOS App's feedback popup, and easily customizable.
Stars: ✭ 247 (+118.58%)
Mutual labels:  ios-ui, popup
RDPopup
A simple way to add custom Popup. Design on Nib and use as you want. Written in Objective-C.
Stars: ✭ 19 (-83.19%)
Mutual labels:  popup, ios-ui
Hwpanmodal
HWPanModal presents controller from bottom and drag to dismiss, high customize. iOS13 default modalPresentationStyle. 任意形式的底部弹框动画;头条、知乎、抖音弹出评论效果;地图浮层,iOS13 present默认模态效果。
Stars: ✭ 713 (+530.97%)
Mutual labels:  ios-ui, popup
Uxtooltime Axure
The best Axure Widget Libraries.
Stars: ✭ 81 (-28.32%)
Mutual labels:  ios-ui
Tcpickerview
Picker view popup with multiply rows selection written in Swift
Stars: ✭ 84 (-25.66%)
Mutual labels:  popup
Swiftcocoadsl
An easy way to write iOS UI
Stars: ✭ 103 (-8.85%)
Mutual labels:  ios-ui
React Native Push Notification Popup
A <NotificationPopup/> component for presenting your own push notification in react-native app
Stars: ✭ 111 (-1.77%)
Mutual labels:  popup
React Poppop
A mobile support and multi-directional modal for ReactJS
Stars: ✭ 78 (-30.97%)
Mutual labels:  popup
Aiolos
A floating panel for your iOS Apps
Stars: ✭ 1,544 (+1266.37%)
Mutual labels:  ios-ui
Flexlayout
FlexLayout adds a nice Swift interface to the highly optimized facebook/yoga flexbox implementation. Concise, intuitive & chainable syntax.
Stars: ✭ 1,342 (+1087.61%)
Mutual labels:  ios-ui
Hhfloatingview
An easy to use and setup floating view for your app. 🎡
Stars: ✭ 93 (-17.7%)
Mutual labels:  ios-ui
Slidingtabbar
A custom TabBar view with sliding animation written in Swift.
Stars: ✭ 84 (-25.66%)
Mutual labels:  ios-ui
Boden
Purely native C++ cross-platform GUI framework for Android and iOS development. https://www.boden.io
Stars: ✭ 1,394 (+1133.63%)
Mutual labels:  ios-ui
Jbox
jBox is a jQuery plugin that makes it easy to create customizable tooltips, modal windows, image galleries and more.
Stars: ✭ 1,251 (+1007.08%)
Mutual labels:  popup
Panels
Panels is a framework to easily add sliding panels to your application
Stars: ✭ 1,457 (+1189.38%)
Mutual labels:  popup
Alertjs
Dialog Builder allows you to create fully customisable dialogs and popups in Dynamics 365.
Stars: ✭ 80 (-29.2%)
Mutual labels:  popup
Cascade
Nested popup menus with smooth height animations
Stars: ✭ 1,493 (+1221.24%)
Mutual labels:  popup
Xam.plugin.simplebottomdrawer
Just a nice and simple BottomDrawer for your Xamarin Forms project
Stars: ✭ 92 (-18.58%)
Mutual labels:  popup
Mbpopup
macOS status bar popups done right 😎
Stars: ✭ 89 (-21.24%)
Mutual labels:  popup
Customalertviewdialogue
Custom AlertView Dialogue is the world's most advanced alert view library. Custom AlertView Dialogue includes simple message popups, confirmation alerts, selector popups, action sheet bottom menus, and input/feedback contact forms.
Stars: ✭ 100 (-11.5%)
Mutual labels:  popup

HWPopController

HWPopController can popup UIViewController with multiple animations, custom pop size in portrait / landscape screen. Popup position can be top/center/bottom. And you can define your own popup animations.

My another project for pop view from bottom:HWPanModal

Screen Shot

Features

  • Support popup UIViewController.
  • Support popup UINavigationController, dynamic change pop size when you push/pop.
  • Support 12 kinds of pop & dismiss animations.
  • Support define your own custom animation for pop & dismiss.
  • Support popup at top/center/bottom, and use positionOffset to adjust x,y coordinates.

Compatibility

iOS 8.0+, support Objective-C & Swift.

Installation

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

pod 'HWPopController', '~> 1.0.5'

How to use

  1. Create you popup UIViewController.

    1. import HWPopController framework
    2. config contentSizeInPop and contentSizeInPopWhenLandscape(if you want to support landscape)
    #import "HWPop1ViewController.h"
    #import <HWPopController/HWPop.h>
    @interface HWPop1ViewController ()
    @end
    
    @implementation HWPop1ViewController
    
    - (void)viewDidLoad {
        [super viewDidLoad];
        // Do any additional setup after loading the view.
        self.contentSizeInPop = CGSizeMake(250, 300);
        self.contentSizeInPopWhenLandscape = CGSizeMake(300, 200);
        // build you pop view.
    }
    
  2. Popup your viewController

    If you want high custom your popup, init HWPopController. Then config the properties what you want. Please see HWPopController.h

    {
        HWPop1ViewController *pop1ViewController = [HWPop1ViewController new];
        HWPopController *popController = [[HWPopController alloc] initWithRootViewController:pop1ViewController];
        // popView position
        popController.popPosition = HWPopPositionTop;
        [popController presentInViewController:self];
    }
    

    Quick popup, use the UIViewController category.

    HWPop1ViewController *pop1ViewController = [HWPop1ViewController new];
    [pop1ViewController popupWithPopType:HWPopTypeGrowIn dismissType:HWDismissTypeGrowOut dismissOnBackgroundTouch:YES];
    
  3. Dismiss pop Use native api.

    [self dismissViewControllerAnimated:YES completion:^{
            
    }];
    

    Get popController, then call popController dismiss api.

     [self.popController dismiss];
    

Pop UINavigationController

If you want pop UINavigationController, and every stacked UIViewController contentSize is not same. You can use HWPopNavigationController.

HWPopNavigationController subclass UINavigationController, you can inherit from HWPopNavigationController, config contentSizeInPop as default contentSize.

When you push A Controller, then Push B Controller. A, B Controller should config contentSizeInPop if you need. If you have not config it, we will use NavigationController contentSizeInPop.

Relationship:

  • UINavigationController
    • HWPopNavigationController
      • Your custom UINavigationController inherit from HWPopNavigationController

More details, pls see the Example.

Example

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

Author

HeathWang, [email protected]

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].