This will provide you custom pop up view with custom configuration. This will provide you 6 different presentation styles and 3 different dismiss styles. Separate properties to customize the look of the UI. Known issue : Button text color not working.
###Installation Steps: It's very easy to add this custom view to your project.
-
Open the HMPopUp project folder.
-
Drag and drop "HMPopUpView.h" and "HMPopUpView.m" files to your project or you can do this through Xcode by adding files to your project. Either way files will copy to your project.
###Implementaion:
-
Import header file
HMPopUpView.h
-
Add delegate protocol
<HMPopUpViewDelegate>
-
In your ViewController.m
HMPopUpView *hmPopUp = [[HMPopUpView alloc] initWithTitle:@"Hey PopUp..." okButtonTitle:@"Okay" cancelButtonTitle:@"Cancel" delegate:self];
[hmPopUp showInView:self.view];
######Note: By default the view is in black and white unless you configure view using method ``` configureHMPopUpViewWithBGColor: titleColor: buttonViewColor: buttonBGColor: buttonTextColor: ```
#####More way to Customize: ######Presentation Styles ``` HMPopUpTransitionTypePop HMPopUpTransitionTypePopFromBottom HMPopUpTransitionTypePopFromTop HMPopUpTransitionTypeFadeIn HMPopUpTransitionTypeFadeInFromBottom HMPopUpTransitionTypeFadeInFromTop ```
######Dismiss Styles
HMPopUpDismissTypeFadeOut
HMPopUpDismissTypeFadeOutBottom
HMPopUpDismissTypeFadeOutTop
######Define transition Default presentation style - `HMPopUpTransitionTypePop`
Default dismiss style - HMPopUpDismissTypeFadeOut
hmPopUp.transitionType = HMPopUpTransitionTypeFadeInFromBottom;
hmPopUp.dismissType = HMPopUpDismissTypeFadeOutTop;