diff --git a/Documentation/Classes.html b/Documentation/Classes.html index 1123604..c73722d 100644 --- a/Documentation/Classes.html +++ b/Documentation/Classes.html @@ -171,7 +171,7 @@

Declaration

diff --git a/Documentation/Classes/VSAlertAction.html b/Documentation/Classes/VSAlertAction.html index 7243fda..2dc86f6 100644 --- a/Documentation/Classes/VSAlertAction.html +++ b/Documentation/Classes/VSAlertAction.html @@ -492,7 +492,7 @@

Declaration

diff --git a/Documentation/Classes/VSAlertController.html b/Documentation/Classes/VSAlertController.html index b2ef5a9..a3a9f36 100644 --- a/Documentation/Classes/VSAlertController.html +++ b/Documentation/Classes/VSAlertController.html @@ -329,6 +329,33 @@

Configuring Alert Appearance

@@ -815,7 +870,7 @@

Declaration

diff --git a/Documentation/Constants.html b/Documentation/Constants.html index fdddc0b..4bab994 100644 --- a/Documentation/Constants.html +++ b/Documentation/Constants.html @@ -192,7 +192,7 @@

Declaration

diff --git a/Documentation/Enums.html b/Documentation/Enums.html index 756f646..f306ffa 100644 --- a/Documentation/Enums.html +++ b/Documentation/Enums.html @@ -221,7 +221,7 @@

Declaration

diff --git a/Documentation/Enums/VSAlertActionStyle.html b/Documentation/Enums/VSAlertActionStyle.html index 36218c5..4a30687 100644 --- a/Documentation/Enums/VSAlertActionStyle.html +++ b/Documentation/Enums/VSAlertActionStyle.html @@ -205,7 +205,7 @@

Declaration

diff --git a/Documentation/Enums/VSAlertControllerAnimationStyle.html b/Documentation/Enums/VSAlertControllerAnimationStyle.html index 28ab045..a9bf131 100644 --- a/Documentation/Enums/VSAlertControllerAnimationStyle.html +++ b/Documentation/Enums/VSAlertControllerAnimationStyle.html @@ -317,7 +317,7 @@

Declaration

diff --git a/Documentation/Enums/VSAlertControllerStyle.html b/Documentation/Enums/VSAlertControllerStyle.html index a4cf946..d41f2e5 100644 --- a/Documentation/Enums/VSAlertControllerStyle.html +++ b/Documentation/Enums/VSAlertControllerStyle.html @@ -205,7 +205,7 @@

Declaration

diff --git a/Documentation/Protocols.html b/Documentation/Protocols.html index 93ff979..64fac60 100644 --- a/Documentation/Protocols.html +++ b/Documentation/Protocols.html @@ -139,7 +139,7 @@

Declaration

diff --git a/Documentation/Protocols/VSAlertControllerDelegate.html b/Documentation/Protocols/VSAlertControllerDelegate.html index e06f220..e621e6c 100644 --- a/Documentation/Protocols/VSAlertControllerDelegate.html +++ b/Documentation/Protocols/VSAlertControllerDelegate.html @@ -363,7 +363,7 @@

Parameters

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes.html index 1123604..c73722d 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes.html @@ -171,7 +171,7 @@

Declaration

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes/VSAlertAction.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes/VSAlertAction.html index 7243fda..2dc86f6 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes/VSAlertAction.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes/VSAlertAction.html @@ -492,7 +492,7 @@

Declaration

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes/VSAlertController.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes/VSAlertController.html index b2ef5a9..a3a9f36 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes/VSAlertController.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Classes/VSAlertController.html @@ -329,6 +329,33 @@

Configuring Alert Appearance

@@ -815,7 +870,7 @@

Declaration

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Constants.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Constants.html index fdddc0b..4bab994 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Constants.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Constants.html @@ -192,7 +192,7 @@

Declaration

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums.html index 756f646..f306ffa 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums.html @@ -221,7 +221,7 @@

Declaration

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertActionStyle.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertActionStyle.html index 36218c5..4a30687 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertActionStyle.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertActionStyle.html @@ -205,7 +205,7 @@

Declaration

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertControllerAnimationStyle.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertControllerAnimationStyle.html index 28ab045..a9bf131 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertControllerAnimationStyle.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertControllerAnimationStyle.html @@ -317,7 +317,7 @@

Declaration

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertControllerStyle.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertControllerStyle.html index a4cf946..d41f2e5 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertControllerStyle.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Enums/VSAlertControllerStyle.html @@ -205,7 +205,7 @@

Declaration

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols.html index 93ff979..64fac60 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols.html @@ -139,7 +139,7 @@

Declaration

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols/VSAlertControllerDelegate.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols/VSAlertControllerDelegate.html index e06f220..e621e6c 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols/VSAlertControllerDelegate.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/Protocols/VSAlertControllerDelegate.html @@ -363,7 +363,7 @@

Parameters

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/index.html b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/index.html index 56ba76d..d392285 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/index.html +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/index.html @@ -180,7 +180,7 @@

Image Template

diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/search.json b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/search.json index 48658c2..4457edd 100644 --- a/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/search.json +++ b/Documentation/docsets/VSAlert.docset/Contents/Resources/Documents/search.json @@ -1 +1 @@ -{"Protocols/VSAlertControllerDelegate.html#/c:objc(pl)VSAlertControllerDelegate(im)alertControllerWillAppear:":{"name":"-alertControllerWillAppear:","abstract":"

Sent to the delegate just before the view controller appears.

","parent_name":"VSAlertControllerDelegate"},"Protocols/VSAlertControllerDelegate.html#/c:objc(pl)VSAlertControllerDelegate(im)alertControllerDidAppear:":{"name":"-alertControllerDidAppear:","abstract":"

Sent to teh delegate just after the view controller appears.

","parent_name":"VSAlertControllerDelegate"},"Protocols/VSAlertControllerDelegate.html#/c:objc(pl)VSAlertControllerDelegate(im)alertControllerWillDisappear:":{"name":"-alertControllerWillDisappear:","abstract":"

Sent to the delegate just before the view controller disappears.

","parent_name":"VSAlertControllerDelegate"},"Protocols/VSAlertControllerDelegate.html#/c:objc(pl)VSAlertControllerDelegate(im)alertControllerDidDisappear:":{"name":"-alertControllerDidDisappear:","abstract":"

Sent to teh delegate just after the view controller disappears.

","parent_name":"VSAlertControllerDelegate"},"Protocols/VSAlertControllerDelegate.html#/c:objc(pl)VSAlertControllerDelegate(im)alertController:didSelectAction:":{"name":"-alertController:didSelectAction:","abstract":"

Sent to the delegate when the user taps on an action. Message is sent before the action block is executed.

","parent_name":"VSAlertControllerDelegate"},"Protocols/VSAlertControllerDelegate.html":{"name":"VSAlertControllerDelegate","abstract":"

VSAlertControllerDelegate is a protocol used to inform an object about user intractions with alerts

"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleRise":{"name":"VSAlertControllerAnimationStyleRise","abstract":"

The alert rises from the bottom of the screen and falls down when dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleFall":{"name":"VSAlertControllerAnimationStyleFall","abstract":"

The alert falls from the top of the screen and rises up when dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleSlide":{"name":"VSAlertControllerAnimationStyleSlide","abstract":"

The alert slides from the left of the screen and slides to the right when dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleFlip":{"name":"VSAlertControllerAnimationStyleFlip","abstract":"

The alert flips from the right, and flips to the left when dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleSticker":{"name":"VSAlertControllerAnimationStyleSticker","abstract":"

The alert page flips from the top, then again from the bottom when dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleCrossDisolve":{"name":"VSAlertControllerAnimationStyleCrossDisolve","abstract":"

The alert page fades in, then fades out dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleAutomatic":{"name":"VSAlertControllerAnimationStyleAutomatic","abstract":"

The alert chooses its presentation and dismissal styles automatically.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerStyle.html#/c:@E@VSAlertControllerStyle@VSAlertControllerStyleAlert":{"name":"VSAlertControllerStyleAlert","abstract":"

A standard alert, 270pt wide, variable height. Supports text fields

","parent_name":"VSAlertControllerStyle"},"Enums/VSAlertControllerStyle.html#/c:@E@VSAlertControllerStyle@VSAlertControllerStyleWalkthroughAlert":{"name":"VSAlertControllerStyleWalkthroughAlert","abstract":"

A wider alert that stretches to the margins of the device - 18pt in either direction. Supports text fields, useful for onboarding. 500pt wide on iPad.

","parent_name":"VSAlertControllerStyle"},"Enums/VSAlertControllerStyle.html#/c:@E@VSAlertControllerStyle@VSAlertControllerStyleActionSheet":{"name":"VSAlertControllerStyleActionSheet","abstract":"

An alert that appears at the bottom of the display, similar to Apple’s action sheet stlye. Does NOT support text fields.

","parent_name":"VSAlertControllerStyle"},"Enums/VSAlertActionStyle.html#/c:@E@VSAlertActionStyle@VSAlertActionStyleDefault":{"name":"VSAlertActionStyleDefault","abstract":"

A normal action

","parent_name":"VSAlertActionStyle"},"Enums/VSAlertActionStyle.html#/c:@E@VSAlertActionStyle@VSAlertActionStyleCancel":{"name":"VSAlertActionStyleCancel","abstract":"

An action that indicates to the user that the current process wil be cancelled

","parent_name":"VSAlertActionStyle"},"Enums/VSAlertActionStyle.html#/c:@E@VSAlertActionStyle@VSAlertActionStyleDestructive":{"name":"VSAlertActionStyleDestructive","abstract":"

An action indicates to the user that an irreversible process is about to happen.

","parent_name":"VSAlertActionStyle"},"Enums/VSAlertActionStyle.html":{"name":"VSAlertActionStyle","abstract":"

An enumeration for the kinds of actions that can be created

"},"Enums/VSAlertControllerStyle.html":{"name":"VSAlertControllerStyle","abstract":"

An enumeration describing the kinds of alerts that VSAlertController can display

"},"Enums/VSAlertControllerAnimationStyle.html":{"name":"VSAlertControllerAnimationStyle","abstract":"

An enumeration describing the kinds of animations that can be used to present and hide an alert

"},"Constants.html#/c:@VSAlertControllerNotImplementedException":{"name":"VSAlertControllerNotImplementedException","abstract":"

An exception thrown when an unimplemented feature is encountered at runtime.

"},"Constants.html#/c:@VSAlertControllerTextFieldInvalidException":{"name":"VSAlertControllerTextFieldInvalidException","abstract":"

An exception thrown when a text field is added to an alert controller which doesn’t support text fields

"},"Constants.html#/c:@VSAlertControllerPresentationAnimationException":{"name":"VSAlertControllerPresentationAnimationException","abstract":"

An exception thrown when a view controller presentation animation fails

"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(cm)alertControllerWithTitle:message:image:style:":{"name":"+alertControllerWithTitle:message:image:style:","abstract":"

A factory method to create an instance of VSAlertController. This is the preffered way to instantiate alerts

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(cm)alertControllerWithTitle:message:style:":{"name":"+alertControllerWithTitle:message:style:","abstract":"

A factory method to create an instance of VSAlertController.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(im)initWithTitle:message:image:style:":{"name":"-initWithTitle:message:image:style:","abstract":"

Create an instance of VSAlertController

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)alertTitleTextColor":{"name":"alertTitleTextColor","abstract":"

The color of the alert title. The default value is black.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)alertMessageTextColor":{"name":"alertMessageTextColor","abstract":"

The color of the alert message (description). The default value is black.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)alertTitleTextFont":{"name":"alertTitleTextFont","abstract":"

The font of the alert title. The default value is the system font size 17 weight medium.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)alertMessageTextFont":{"name":"alertMessageTextFont","abstract":"

The font of the alert message (description). The default value is the system font size 15 weight regular.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(im)addAction:":{"name":"-addAction:","abstract":"

Add an action to an alert

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(im)addTextField:":{"name":"-addTextField:","abstract":"

Add a text field to the alert. Rather than instantiating a UITextField object yourself, VSAlertController instantiates one for you. You can configure it using the optional configuration block

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)dismissOnBackgroundTap":{"name":"dismissOnBackgroundTap","abstract":"

Set to YES if you want the alert to dismiss itself when the user taps on the background of the alert. Default is NO.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)animationStyle":{"name":"animationStyle","abstract":"

Change the animation used when the alert is presented AND dismissed. Default is VSAlertControllerAnimationStyleRise.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)delegate":{"name":"delegate","abstract":"

The delegate object to handle alert action interactions

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)textFields":{"name":"textFields","abstract":"

Returns the array of text field objects that are displayed in the alert, so you can interact with the user’s inputs.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)style":{"name":"style","abstract":"

The style of the alert

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)message":{"name":"message","abstract":"

The message of the alert

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)image":{"name":"image","abstract":"

The image of the alert

","parent_name":"VSAlertController"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(cm)alertActionWithTitle:style:action:":{"name":"+alertActionWithTitle:style:action:","abstract":"

A factory method to create an instance of UIAlertAction. This is the prefered way to create alert actions.

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(im)initWithTitle:style:action:":{"name":"-initWithTitle:style:action:","abstract":"

Create an instance of UIAlertAction

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)actionTextColor":{"name":"actionTextColor","abstract":"

The color of the title text used in non-desctructive actions

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)destructiveActionTextColor":{"name":"destructiveActionTextColor","abstract":"

The color of the title text used in destructive actions

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)actionTextFont":{"name":"actionTextFont","abstract":"

The font of the title used in non-cancel actions

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)cancelActionTextFont":{"name":"cancelActionTextFont","abstract":"

The font of the title used in cancel actions

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)alertTitle":{"name":"alertTitle","abstract":"

The title of the alert

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)style":{"name":"style","abstract":"

The display style of the alert

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)action":{"name":"action","abstract":"

The block that will be executed when the user interacts with the action. The block is called on the main thread always, and begins executed before the alert is dismissed

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html":{"name":"VSAlertAction","abstract":"

VSAlertAction is a specialized subclass of UIButton that is used to populate and provide interactive controls to an instance of VSAlertController.

"},"Classes/VSAlertController.html":{"name":"VSAlertController","abstract":"

VSAlertController is a drop-in replacement for UIAlertController with more features. It is created using the +alertControllerWithTitle:message:image:style: class method, and configured using instances of VSAlertAction. You can add text fields by calling -addTextField: on an instance of VSAlertController. Instantiate the controller, add your actions and textfieds. and any other configuration you might need. Present the controller modally using UIViewController’s -presentViewController:animated:completion: method. VSAlertController respects the animation paramater of this call, and you configure the animation in question by setting your instances animationStyle property before presentation. You can also change this property in the handler of an action to use a different animation on dismissal.

"},"Classes.html":{"name":"Classes","abstract":"

The following classes are available globally.

"},"Constants.html":{"name":"Constants","abstract":"

The following constants are available globally.

"},"Enums.html":{"name":"Enumerations","abstract":"

The following enumerations are available globally.

"},"Protocols.html":{"name":"Protocols","abstract":"

The following protocols are available globally.

"}} \ No newline at end of file +{"Protocols/VSAlertControllerDelegate.html#/c:objc(pl)VSAlertControllerDelegate(im)alertControllerWillAppear:":{"name":"-alertControllerWillAppear:","abstract":"

Sent to the delegate just before the view controller appears.

","parent_name":"VSAlertControllerDelegate"},"Protocols/VSAlertControllerDelegate.html#/c:objc(pl)VSAlertControllerDelegate(im)alertControllerDidAppear:":{"name":"-alertControllerDidAppear:","abstract":"

Sent to teh delegate just after the view controller appears.

","parent_name":"VSAlertControllerDelegate"},"Protocols/VSAlertControllerDelegate.html#/c:objc(pl)VSAlertControllerDelegate(im)alertControllerWillDisappear:":{"name":"-alertControllerWillDisappear:","abstract":"

Sent to the delegate just before the view controller disappears.

","parent_name":"VSAlertControllerDelegate"},"Protocols/VSAlertControllerDelegate.html#/c:objc(pl)VSAlertControllerDelegate(im)alertControllerDidDisappear:":{"name":"-alertControllerDidDisappear:","abstract":"

Sent to teh delegate just after the view controller disappears.

","parent_name":"VSAlertControllerDelegate"},"Protocols/VSAlertControllerDelegate.html#/c:objc(pl)VSAlertControllerDelegate(im)alertController:didSelectAction:":{"name":"-alertController:didSelectAction:","abstract":"

Sent to the delegate when the user taps on an action. Message is sent before the action block is executed.

","parent_name":"VSAlertControllerDelegate"},"Protocols/VSAlertControllerDelegate.html":{"name":"VSAlertControllerDelegate","abstract":"

VSAlertControllerDelegate is a protocol used to inform an object about user intractions with alerts

"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleRise":{"name":"VSAlertControllerAnimationStyleRise","abstract":"

The alert rises from the bottom of the screen and falls down when dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleFall":{"name":"VSAlertControllerAnimationStyleFall","abstract":"

The alert falls from the top of the screen and rises up when dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleSlide":{"name":"VSAlertControllerAnimationStyleSlide","abstract":"

The alert slides from the left of the screen and slides to the right when dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleFlip":{"name":"VSAlertControllerAnimationStyleFlip","abstract":"

The alert flips from the right, and flips to the left when dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleSticker":{"name":"VSAlertControllerAnimationStyleSticker","abstract":"

The alert page flips from the top, then again from the bottom when dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleCrossDisolve":{"name":"VSAlertControllerAnimationStyleCrossDisolve","abstract":"

The alert page fades in, then fades out dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleAutomatic":{"name":"VSAlertControllerAnimationStyleAutomatic","abstract":"

The alert chooses its presentation and dismissal styles automatically.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerStyle.html#/c:@E@VSAlertControllerStyle@VSAlertControllerStyleAlert":{"name":"VSAlertControllerStyleAlert","abstract":"

A standard alert, 270pt wide, variable height. Supports text fields

","parent_name":"VSAlertControllerStyle"},"Enums/VSAlertControllerStyle.html#/c:@E@VSAlertControllerStyle@VSAlertControllerStyleWalkthroughAlert":{"name":"VSAlertControllerStyleWalkthroughAlert","abstract":"

A wider alert that stretches to the margins of the device - 18pt in either direction. Supports text fields, useful for onboarding. 500pt wide on iPad.

","parent_name":"VSAlertControllerStyle"},"Enums/VSAlertControllerStyle.html#/c:@E@VSAlertControllerStyle@VSAlertControllerStyleActionSheet":{"name":"VSAlertControllerStyleActionSheet","abstract":"

An alert that appears at the bottom of the display, similar to Apple’s action sheet stlye. Does NOT support text fields.

","parent_name":"VSAlertControllerStyle"},"Enums/VSAlertActionStyle.html#/c:@E@VSAlertActionStyle@VSAlertActionStyleDefault":{"name":"VSAlertActionStyleDefault","abstract":"

A normal action

","parent_name":"VSAlertActionStyle"},"Enums/VSAlertActionStyle.html#/c:@E@VSAlertActionStyle@VSAlertActionStyleCancel":{"name":"VSAlertActionStyleCancel","abstract":"

An action that indicates to the user that the current process wil be cancelled

","parent_name":"VSAlertActionStyle"},"Enums/VSAlertActionStyle.html#/c:@E@VSAlertActionStyle@VSAlertActionStyleDestructive":{"name":"VSAlertActionStyleDestructive","abstract":"

An action indicates to the user that an irreversible process is about to happen.

","parent_name":"VSAlertActionStyle"},"Enums/VSAlertActionStyle.html":{"name":"VSAlertActionStyle","abstract":"

An enumeration for the kinds of actions that can be created

"},"Enums/VSAlertControllerStyle.html":{"name":"VSAlertControllerStyle","abstract":"

An enumeration describing the kinds of alerts that VSAlertController can display

"},"Enums/VSAlertControllerAnimationStyle.html":{"name":"VSAlertControllerAnimationStyle","abstract":"

An enumeration describing the kinds of animations that can be used to present and hide an alert

"},"Constants.html#/c:@VSAlertControllerNotImplementedException":{"name":"VSAlertControllerNotImplementedException","abstract":"

An exception thrown when an unimplemented feature is encountered at runtime.

"},"Constants.html#/c:@VSAlertControllerTextFieldInvalidException":{"name":"VSAlertControllerTextFieldInvalidException","abstract":"

An exception thrown when a text field is added to an alert controller which doesn’t support text fields

"},"Constants.html#/c:@VSAlertControllerPresentationAnimationException":{"name":"VSAlertControllerPresentationAnimationException","abstract":"

An exception thrown when a view controller presentation animation fails

"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(cm)alertControllerWithTitle:message:image:style:":{"name":"+alertControllerWithTitle:message:image:style:","abstract":"

A factory method to create an instance of VSAlertController. This is the preffered way to instantiate alerts

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(cm)alertControllerWithTitle:message:style:":{"name":"+alertControllerWithTitle:message:style:","abstract":"

A factory method to create an instance of VSAlertController.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(im)initWithTitle:message:image:style:":{"name":"-initWithTitle:message:image:style:","abstract":"

Create an instance of VSAlertController

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)alertBackgroundColor":{"name":"alertBackgroundColor","abstract":"

The background color of the alert.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)alertTitleTextColor":{"name":"alertTitleTextColor","abstract":"

The color of the alert title. The default value is black.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)alertMessageTextColor":{"name":"alertMessageTextColor","abstract":"

The color of the alert message (description). The default value is black.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)alertTitleTextFont":{"name":"alertTitleTextFont","abstract":"

The font of the alert title. The default value is the system font size 17 weight medium.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)alertMessageTextFont":{"name":"alertMessageTextFont","abstract":"

The font of the alert message (description). The default value is the system font size 15 weight regular.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)alertMessageTextAlignment":{"name":"alertMessageTextAlignment","abstract":"

The text alignment of the alert message

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(im)addAction:":{"name":"-addAction:","abstract":"

Add an action to an alert

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(im)addTextField:":{"name":"-addTextField:","abstract":"

Add a text field to the alert. Rather than instantiating a UITextField object yourself, VSAlertController instantiates one for you. You can configure it using the optional configuration block

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)dismissOnBackgroundTap":{"name":"dismissOnBackgroundTap","abstract":"

Set to YES if you want the alert to dismiss itself when the user taps on the background of the alert. Default is NO.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)animationStyle":{"name":"animationStyle","abstract":"

Change the animation used when the alert is presented AND dismissed. Default is VSAlertControllerAnimationStyleRise.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)delegate":{"name":"delegate","abstract":"

The delegate object to handle alert action interactions

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)textFields":{"name":"textFields","abstract":"

Returns the array of text field objects that are displayed in the alert, so you can interact with the user’s inputs.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)style":{"name":"style","abstract":"

The style of the alert

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)message":{"name":"message","abstract":"

The message of the alert

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)image":{"name":"image","abstract":"

The image of the alert

","parent_name":"VSAlertController"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(cm)alertActionWithTitle:style:action:":{"name":"+alertActionWithTitle:style:action:","abstract":"

A factory method to create an instance of UIAlertAction. This is the prefered way to create alert actions.

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(im)initWithTitle:style:action:":{"name":"-initWithTitle:style:action:","abstract":"

Create an instance of UIAlertAction

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)actionTextColor":{"name":"actionTextColor","abstract":"

The color of the title text used in non-desctructive actions

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)destructiveActionTextColor":{"name":"destructiveActionTextColor","abstract":"

The color of the title text used in destructive actions

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)actionTextFont":{"name":"actionTextFont","abstract":"

The font of the title used in non-cancel actions

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)cancelActionTextFont":{"name":"cancelActionTextFont","abstract":"

The font of the title used in cancel actions

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)alertTitle":{"name":"alertTitle","abstract":"

The title of the alert

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)style":{"name":"style","abstract":"

The display style of the alert

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)action":{"name":"action","abstract":"

The block that will be executed when the user interacts with the action. The block is called on the main thread always, and begins executed before the alert is dismissed

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html":{"name":"VSAlertAction","abstract":"

VSAlertAction is a specialized subclass of UIButton that is used to populate and provide interactive controls to an instance of VSAlertController.

"},"Classes/VSAlertController.html":{"name":"VSAlertController","abstract":"

VSAlertController is a drop-in replacement for UIAlertController with more features. It is created using the +alertControllerWithTitle:message:image:style: class method, and configured using instances of VSAlertAction. You can add text fields by calling -addTextField: on an instance of VSAlertController. Instantiate the controller, add your actions and textfieds. and any other configuration you might need. Present the controller modally using UIViewController’s -presentViewController:animated:completion: method. VSAlertController respects the animation paramater of this call, and you configure the animation in question by setting your instances animationStyle property before presentation. You can also change this property in the handler of an action to use a different animation on dismissal.

"},"Classes.html":{"name":"Classes","abstract":"

The following classes are available globally.

"},"Constants.html":{"name":"Constants","abstract":"

The following constants are available globally.

"},"Enums.html":{"name":"Enumerations","abstract":"

The following enumerations are available globally.

"},"Protocols.html":{"name":"Protocols","abstract":"

The following protocols are available globally.

"}} \ No newline at end of file diff --git a/Documentation/docsets/VSAlert.docset/Contents/Resources/docSet.dsidx b/Documentation/docsets/VSAlert.docset/Contents/Resources/docSet.dsidx index d23f94b..14ab6b2 100644 Binary files a/Documentation/docsets/VSAlert.docset/Contents/Resources/docSet.dsidx and b/Documentation/docsets/VSAlert.docset/Contents/Resources/docSet.dsidx differ diff --git a/Documentation/docsets/VSAlert.tgz b/Documentation/docsets/VSAlert.tgz index 6697540..8c4d455 100644 Binary files a/Documentation/docsets/VSAlert.tgz and b/Documentation/docsets/VSAlert.tgz differ diff --git a/Documentation/index.html b/Documentation/index.html index 56ba76d..d392285 100644 --- a/Documentation/index.html +++ b/Documentation/index.html @@ -180,7 +180,7 @@

Image Template

diff --git a/Documentation/search.json b/Documentation/search.json index 48658c2..4457edd 100644 --- a/Documentation/search.json +++ b/Documentation/search.json @@ -1 +1 @@ -{"Protocols/VSAlertControllerDelegate.html#/c:objc(pl)VSAlertControllerDelegate(im)alertControllerWillAppear:":{"name":"-alertControllerWillAppear:","abstract":"

Sent to the delegate just before the view controller appears.

","parent_name":"VSAlertControllerDelegate"},"Protocols/VSAlertControllerDelegate.html#/c:objc(pl)VSAlertControllerDelegate(im)alertControllerDidAppear:":{"name":"-alertControllerDidAppear:","abstract":"

Sent to teh delegate just after the view controller appears.

","parent_name":"VSAlertControllerDelegate"},"Protocols/VSAlertControllerDelegate.html#/c:objc(pl)VSAlertControllerDelegate(im)alertControllerWillDisappear:":{"name":"-alertControllerWillDisappear:","abstract":"

Sent to the delegate just before the view controller disappears.

","parent_name":"VSAlertControllerDelegate"},"Protocols/VSAlertControllerDelegate.html#/c:objc(pl)VSAlertControllerDelegate(im)alertControllerDidDisappear:":{"name":"-alertControllerDidDisappear:","abstract":"

Sent to teh delegate just after the view controller disappears.

","parent_name":"VSAlertControllerDelegate"},"Protocols/VSAlertControllerDelegate.html#/c:objc(pl)VSAlertControllerDelegate(im)alertController:didSelectAction:":{"name":"-alertController:didSelectAction:","abstract":"

Sent to the delegate when the user taps on an action. Message is sent before the action block is executed.

","parent_name":"VSAlertControllerDelegate"},"Protocols/VSAlertControllerDelegate.html":{"name":"VSAlertControllerDelegate","abstract":"

VSAlertControllerDelegate is a protocol used to inform an object about user intractions with alerts

"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleRise":{"name":"VSAlertControllerAnimationStyleRise","abstract":"

The alert rises from the bottom of the screen and falls down when dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleFall":{"name":"VSAlertControllerAnimationStyleFall","abstract":"

The alert falls from the top of the screen and rises up when dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleSlide":{"name":"VSAlertControllerAnimationStyleSlide","abstract":"

The alert slides from the left of the screen and slides to the right when dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleFlip":{"name":"VSAlertControllerAnimationStyleFlip","abstract":"

The alert flips from the right, and flips to the left when dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleSticker":{"name":"VSAlertControllerAnimationStyleSticker","abstract":"

The alert page flips from the top, then again from the bottom when dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleCrossDisolve":{"name":"VSAlertControllerAnimationStyleCrossDisolve","abstract":"

The alert page fades in, then fades out dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleAutomatic":{"name":"VSAlertControllerAnimationStyleAutomatic","abstract":"

The alert chooses its presentation and dismissal styles automatically.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerStyle.html#/c:@E@VSAlertControllerStyle@VSAlertControllerStyleAlert":{"name":"VSAlertControllerStyleAlert","abstract":"

A standard alert, 270pt wide, variable height. Supports text fields

","parent_name":"VSAlertControllerStyle"},"Enums/VSAlertControllerStyle.html#/c:@E@VSAlertControllerStyle@VSAlertControllerStyleWalkthroughAlert":{"name":"VSAlertControllerStyleWalkthroughAlert","abstract":"

A wider alert that stretches to the margins of the device - 18pt in either direction. Supports text fields, useful for onboarding. 500pt wide on iPad.

","parent_name":"VSAlertControllerStyle"},"Enums/VSAlertControllerStyle.html#/c:@E@VSAlertControllerStyle@VSAlertControllerStyleActionSheet":{"name":"VSAlertControllerStyleActionSheet","abstract":"

An alert that appears at the bottom of the display, similar to Apple’s action sheet stlye. Does NOT support text fields.

","parent_name":"VSAlertControllerStyle"},"Enums/VSAlertActionStyle.html#/c:@E@VSAlertActionStyle@VSAlertActionStyleDefault":{"name":"VSAlertActionStyleDefault","abstract":"

A normal action

","parent_name":"VSAlertActionStyle"},"Enums/VSAlertActionStyle.html#/c:@E@VSAlertActionStyle@VSAlertActionStyleCancel":{"name":"VSAlertActionStyleCancel","abstract":"

An action that indicates to the user that the current process wil be cancelled

","parent_name":"VSAlertActionStyle"},"Enums/VSAlertActionStyle.html#/c:@E@VSAlertActionStyle@VSAlertActionStyleDestructive":{"name":"VSAlertActionStyleDestructive","abstract":"

An action indicates to the user that an irreversible process is about to happen.

","parent_name":"VSAlertActionStyle"},"Enums/VSAlertActionStyle.html":{"name":"VSAlertActionStyle","abstract":"

An enumeration for the kinds of actions that can be created

"},"Enums/VSAlertControllerStyle.html":{"name":"VSAlertControllerStyle","abstract":"

An enumeration describing the kinds of alerts that VSAlertController can display

"},"Enums/VSAlertControllerAnimationStyle.html":{"name":"VSAlertControllerAnimationStyle","abstract":"

An enumeration describing the kinds of animations that can be used to present and hide an alert

"},"Constants.html#/c:@VSAlertControllerNotImplementedException":{"name":"VSAlertControllerNotImplementedException","abstract":"

An exception thrown when an unimplemented feature is encountered at runtime.

"},"Constants.html#/c:@VSAlertControllerTextFieldInvalidException":{"name":"VSAlertControllerTextFieldInvalidException","abstract":"

An exception thrown when a text field is added to an alert controller which doesn’t support text fields

"},"Constants.html#/c:@VSAlertControllerPresentationAnimationException":{"name":"VSAlertControllerPresentationAnimationException","abstract":"

An exception thrown when a view controller presentation animation fails

"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(cm)alertControllerWithTitle:message:image:style:":{"name":"+alertControllerWithTitle:message:image:style:","abstract":"

A factory method to create an instance of VSAlertController. This is the preffered way to instantiate alerts

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(cm)alertControllerWithTitle:message:style:":{"name":"+alertControllerWithTitle:message:style:","abstract":"

A factory method to create an instance of VSAlertController.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(im)initWithTitle:message:image:style:":{"name":"-initWithTitle:message:image:style:","abstract":"

Create an instance of VSAlertController

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)alertTitleTextColor":{"name":"alertTitleTextColor","abstract":"

The color of the alert title. The default value is black.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)alertMessageTextColor":{"name":"alertMessageTextColor","abstract":"

The color of the alert message (description). The default value is black.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)alertTitleTextFont":{"name":"alertTitleTextFont","abstract":"

The font of the alert title. The default value is the system font size 17 weight medium.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)alertMessageTextFont":{"name":"alertMessageTextFont","abstract":"

The font of the alert message (description). The default value is the system font size 15 weight regular.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(im)addAction:":{"name":"-addAction:","abstract":"

Add an action to an alert

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(im)addTextField:":{"name":"-addTextField:","abstract":"

Add a text field to the alert. Rather than instantiating a UITextField object yourself, VSAlertController instantiates one for you. You can configure it using the optional configuration block

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)dismissOnBackgroundTap":{"name":"dismissOnBackgroundTap","abstract":"

Set to YES if you want the alert to dismiss itself when the user taps on the background of the alert. Default is NO.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)animationStyle":{"name":"animationStyle","abstract":"

Change the animation used when the alert is presented AND dismissed. Default is VSAlertControllerAnimationStyleRise.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)delegate":{"name":"delegate","abstract":"

The delegate object to handle alert action interactions

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)textFields":{"name":"textFields","abstract":"

Returns the array of text field objects that are displayed in the alert, so you can interact with the user’s inputs.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)style":{"name":"style","abstract":"

The style of the alert

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)message":{"name":"message","abstract":"

The message of the alert

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)image":{"name":"image","abstract":"

The image of the alert

","parent_name":"VSAlertController"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(cm)alertActionWithTitle:style:action:":{"name":"+alertActionWithTitle:style:action:","abstract":"

A factory method to create an instance of UIAlertAction. This is the prefered way to create alert actions.

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(im)initWithTitle:style:action:":{"name":"-initWithTitle:style:action:","abstract":"

Create an instance of UIAlertAction

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)actionTextColor":{"name":"actionTextColor","abstract":"

The color of the title text used in non-desctructive actions

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)destructiveActionTextColor":{"name":"destructiveActionTextColor","abstract":"

The color of the title text used in destructive actions

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)actionTextFont":{"name":"actionTextFont","abstract":"

The font of the title used in non-cancel actions

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)cancelActionTextFont":{"name":"cancelActionTextFont","abstract":"

The font of the title used in cancel actions

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)alertTitle":{"name":"alertTitle","abstract":"

The title of the alert

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)style":{"name":"style","abstract":"

The display style of the alert

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)action":{"name":"action","abstract":"

The block that will be executed when the user interacts with the action. The block is called on the main thread always, and begins executed before the alert is dismissed

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html":{"name":"VSAlertAction","abstract":"

VSAlertAction is a specialized subclass of UIButton that is used to populate and provide interactive controls to an instance of VSAlertController.

"},"Classes/VSAlertController.html":{"name":"VSAlertController","abstract":"

VSAlertController is a drop-in replacement for UIAlertController with more features. It is created using the +alertControllerWithTitle:message:image:style: class method, and configured using instances of VSAlertAction. You can add text fields by calling -addTextField: on an instance of VSAlertController. Instantiate the controller, add your actions and textfieds. and any other configuration you might need. Present the controller modally using UIViewController’s -presentViewController:animated:completion: method. VSAlertController respects the animation paramater of this call, and you configure the animation in question by setting your instances animationStyle property before presentation. You can also change this property in the handler of an action to use a different animation on dismissal.

"},"Classes.html":{"name":"Classes","abstract":"

The following classes are available globally.

"},"Constants.html":{"name":"Constants","abstract":"

The following constants are available globally.

"},"Enums.html":{"name":"Enumerations","abstract":"

The following enumerations are available globally.

"},"Protocols.html":{"name":"Protocols","abstract":"

The following protocols are available globally.

"}} \ No newline at end of file +{"Protocols/VSAlertControllerDelegate.html#/c:objc(pl)VSAlertControllerDelegate(im)alertControllerWillAppear:":{"name":"-alertControllerWillAppear:","abstract":"

Sent to the delegate just before the view controller appears.

","parent_name":"VSAlertControllerDelegate"},"Protocols/VSAlertControllerDelegate.html#/c:objc(pl)VSAlertControllerDelegate(im)alertControllerDidAppear:":{"name":"-alertControllerDidAppear:","abstract":"

Sent to teh delegate just after the view controller appears.

","parent_name":"VSAlertControllerDelegate"},"Protocols/VSAlertControllerDelegate.html#/c:objc(pl)VSAlertControllerDelegate(im)alertControllerWillDisappear:":{"name":"-alertControllerWillDisappear:","abstract":"

Sent to the delegate just before the view controller disappears.

","parent_name":"VSAlertControllerDelegate"},"Protocols/VSAlertControllerDelegate.html#/c:objc(pl)VSAlertControllerDelegate(im)alertControllerDidDisappear:":{"name":"-alertControllerDidDisappear:","abstract":"

Sent to teh delegate just after the view controller disappears.

","parent_name":"VSAlertControllerDelegate"},"Protocols/VSAlertControllerDelegate.html#/c:objc(pl)VSAlertControllerDelegate(im)alertController:didSelectAction:":{"name":"-alertController:didSelectAction:","abstract":"

Sent to the delegate when the user taps on an action. Message is sent before the action block is executed.

","parent_name":"VSAlertControllerDelegate"},"Protocols/VSAlertControllerDelegate.html":{"name":"VSAlertControllerDelegate","abstract":"

VSAlertControllerDelegate is a protocol used to inform an object about user intractions with alerts

"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleRise":{"name":"VSAlertControllerAnimationStyleRise","abstract":"

The alert rises from the bottom of the screen and falls down when dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleFall":{"name":"VSAlertControllerAnimationStyleFall","abstract":"

The alert falls from the top of the screen and rises up when dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleSlide":{"name":"VSAlertControllerAnimationStyleSlide","abstract":"

The alert slides from the left of the screen and slides to the right when dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleFlip":{"name":"VSAlertControllerAnimationStyleFlip","abstract":"

The alert flips from the right, and flips to the left when dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleSticker":{"name":"VSAlertControllerAnimationStyleSticker","abstract":"

The alert page flips from the top, then again from the bottom when dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleCrossDisolve":{"name":"VSAlertControllerAnimationStyleCrossDisolve","abstract":"

The alert page fades in, then fades out dismissed.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerAnimationStyle.html#/c:@E@VSAlertControllerAnimationStyle@VSAlertControllerAnimationStyleAutomatic":{"name":"VSAlertControllerAnimationStyleAutomatic","abstract":"

The alert chooses its presentation and dismissal styles automatically.

","parent_name":"VSAlertControllerAnimationStyle"},"Enums/VSAlertControllerStyle.html#/c:@E@VSAlertControllerStyle@VSAlertControllerStyleAlert":{"name":"VSAlertControllerStyleAlert","abstract":"

A standard alert, 270pt wide, variable height. Supports text fields

","parent_name":"VSAlertControllerStyle"},"Enums/VSAlertControllerStyle.html#/c:@E@VSAlertControllerStyle@VSAlertControllerStyleWalkthroughAlert":{"name":"VSAlertControllerStyleWalkthroughAlert","abstract":"

A wider alert that stretches to the margins of the device - 18pt in either direction. Supports text fields, useful for onboarding. 500pt wide on iPad.

","parent_name":"VSAlertControllerStyle"},"Enums/VSAlertControllerStyle.html#/c:@E@VSAlertControllerStyle@VSAlertControllerStyleActionSheet":{"name":"VSAlertControllerStyleActionSheet","abstract":"

An alert that appears at the bottom of the display, similar to Apple’s action sheet stlye. Does NOT support text fields.

","parent_name":"VSAlertControllerStyle"},"Enums/VSAlertActionStyle.html#/c:@E@VSAlertActionStyle@VSAlertActionStyleDefault":{"name":"VSAlertActionStyleDefault","abstract":"

A normal action

","parent_name":"VSAlertActionStyle"},"Enums/VSAlertActionStyle.html#/c:@E@VSAlertActionStyle@VSAlertActionStyleCancel":{"name":"VSAlertActionStyleCancel","abstract":"

An action that indicates to the user that the current process wil be cancelled

","parent_name":"VSAlertActionStyle"},"Enums/VSAlertActionStyle.html#/c:@E@VSAlertActionStyle@VSAlertActionStyleDestructive":{"name":"VSAlertActionStyleDestructive","abstract":"

An action indicates to the user that an irreversible process is about to happen.

","parent_name":"VSAlertActionStyle"},"Enums/VSAlertActionStyle.html":{"name":"VSAlertActionStyle","abstract":"

An enumeration for the kinds of actions that can be created

"},"Enums/VSAlertControllerStyle.html":{"name":"VSAlertControllerStyle","abstract":"

An enumeration describing the kinds of alerts that VSAlertController can display

"},"Enums/VSAlertControllerAnimationStyle.html":{"name":"VSAlertControllerAnimationStyle","abstract":"

An enumeration describing the kinds of animations that can be used to present and hide an alert

"},"Constants.html#/c:@VSAlertControllerNotImplementedException":{"name":"VSAlertControllerNotImplementedException","abstract":"

An exception thrown when an unimplemented feature is encountered at runtime.

"},"Constants.html#/c:@VSAlertControllerTextFieldInvalidException":{"name":"VSAlertControllerTextFieldInvalidException","abstract":"

An exception thrown when a text field is added to an alert controller which doesn’t support text fields

"},"Constants.html#/c:@VSAlertControllerPresentationAnimationException":{"name":"VSAlertControllerPresentationAnimationException","abstract":"

An exception thrown when a view controller presentation animation fails

"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(cm)alertControllerWithTitle:message:image:style:":{"name":"+alertControllerWithTitle:message:image:style:","abstract":"

A factory method to create an instance of VSAlertController. This is the preffered way to instantiate alerts

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(cm)alertControllerWithTitle:message:style:":{"name":"+alertControllerWithTitle:message:style:","abstract":"

A factory method to create an instance of VSAlertController.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(im)initWithTitle:message:image:style:":{"name":"-initWithTitle:message:image:style:","abstract":"

Create an instance of VSAlertController

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)alertBackgroundColor":{"name":"alertBackgroundColor","abstract":"

The background color of the alert.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)alertTitleTextColor":{"name":"alertTitleTextColor","abstract":"

The color of the alert title. The default value is black.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)alertMessageTextColor":{"name":"alertMessageTextColor","abstract":"

The color of the alert message (description). The default value is black.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)alertTitleTextFont":{"name":"alertTitleTextFont","abstract":"

The font of the alert title. The default value is the system font size 17 weight medium.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)alertMessageTextFont":{"name":"alertMessageTextFont","abstract":"

The font of the alert message (description). The default value is the system font size 15 weight regular.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)alertMessageTextAlignment":{"name":"alertMessageTextAlignment","abstract":"

The text alignment of the alert message

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(im)addAction:":{"name":"-addAction:","abstract":"

Add an action to an alert

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(im)addTextField:":{"name":"-addTextField:","abstract":"

Add a text field to the alert. Rather than instantiating a UITextField object yourself, VSAlertController instantiates one for you. You can configure it using the optional configuration block

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)dismissOnBackgroundTap":{"name":"dismissOnBackgroundTap","abstract":"

Set to YES if you want the alert to dismiss itself when the user taps on the background of the alert. Default is NO.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)animationStyle":{"name":"animationStyle","abstract":"

Change the animation used when the alert is presented AND dismissed. Default is VSAlertControllerAnimationStyleRise.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)delegate":{"name":"delegate","abstract":"

The delegate object to handle alert action interactions

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)textFields":{"name":"textFields","abstract":"

Returns the array of text field objects that are displayed in the alert, so you can interact with the user’s inputs.

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)style":{"name":"style","abstract":"

The style of the alert

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)message":{"name":"message","abstract":"

The message of the alert

","parent_name":"VSAlertController"},"Classes/VSAlertController.html#/c:objc(cs)VSAlertController(py)image":{"name":"image","abstract":"

The image of the alert

","parent_name":"VSAlertController"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(cm)alertActionWithTitle:style:action:":{"name":"+alertActionWithTitle:style:action:","abstract":"

A factory method to create an instance of UIAlertAction. This is the prefered way to create alert actions.

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(im)initWithTitle:style:action:":{"name":"-initWithTitle:style:action:","abstract":"

Create an instance of UIAlertAction

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)actionTextColor":{"name":"actionTextColor","abstract":"

The color of the title text used in non-desctructive actions

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)destructiveActionTextColor":{"name":"destructiveActionTextColor","abstract":"

The color of the title text used in destructive actions

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)actionTextFont":{"name":"actionTextFont","abstract":"

The font of the title used in non-cancel actions

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)cancelActionTextFont":{"name":"cancelActionTextFont","abstract":"

The font of the title used in cancel actions

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)alertTitle":{"name":"alertTitle","abstract":"

The title of the alert

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)style":{"name":"style","abstract":"

The display style of the alert

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html#/c:objc(cs)VSAlertAction(py)action":{"name":"action","abstract":"

The block that will be executed when the user interacts with the action. The block is called on the main thread always, and begins executed before the alert is dismissed

","parent_name":"VSAlertAction"},"Classes/VSAlertAction.html":{"name":"VSAlertAction","abstract":"

VSAlertAction is a specialized subclass of UIButton that is used to populate and provide interactive controls to an instance of VSAlertController.

"},"Classes/VSAlertController.html":{"name":"VSAlertController","abstract":"

VSAlertController is a drop-in replacement for UIAlertController with more features. It is created using the +alertControllerWithTitle:message:image:style: class method, and configured using instances of VSAlertAction. You can add text fields by calling -addTextField: on an instance of VSAlertController. Instantiate the controller, add your actions and textfieds. and any other configuration you might need. Present the controller modally using UIViewController’s -presentViewController:animated:completion: method. VSAlertController respects the animation paramater of this call, and you configure the animation in question by setting your instances animationStyle property before presentation. You can also change this property in the handler of an action to use a different animation on dismissal.

"},"Classes.html":{"name":"Classes","abstract":"

The following classes are available globally.

"},"Constants.html":{"name":"Constants","abstract":"

The following constants are available globally.

"},"Enums.html":{"name":"Enumerations","abstract":"

The following enumerations are available globally.

"},"Protocols.html":{"name":"Protocols","abstract":"

The following protocols are available globally.

"}} \ No newline at end of file diff --git a/README.md b/README.md index 440e8a5..e166a02 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ The included Xcode project allows you to build the static library and an example Full documentation is [here](https://vsanthanam.github.io/VSAlert/Documentation/index.html), at https://code.vsanthanam.com/VSAlert/Documentation/index.html -Documentation with made with [Jazzy](https://github.com/realm/jazzy) by [Realm](https://realm.io), using the [Jony Theme](https://github.com/HarshilShah/Jony) by [Harshil Shah](https://github.com/HarshilShah/) +Documentation with made with [Jazzy](https://github.com/realm/jazzy) by [Realm](https://realm.io), using the [Jony Theme](https://github.com/HarshilShah/Jony) by [Harshil Shah](https://github.com/HarshilShah/), and is hosted on GitHub Pages. ### Image Template diff --git a/Release/VSAlert.framework/Versions/A/Headers/VSAlertController.h b/Release/VSAlert.framework/Versions/A/Headers/VSAlertController.h index 0661205..768cf87 100644 --- a/Release/VSAlert.framework/Versions/A/Headers/VSAlertController.h +++ b/Release/VSAlert.framework/Versions/A/Headers/VSAlertController.h @@ -192,6 +192,11 @@ typedef NS_ENUM(NSInteger, VSAlertControllerAnimationStyle) { @name Configuring Alert Appearance */ +/** + The background color of the alert. + */ +@property (NS_NONATOMIC_IOSONLY, strong, nonnull) UIColor *alertBackgroundColor UI_APPEARANCE_SELECTOR; + /** The color of the alert title. The default value is black. */ @@ -212,6 +217,11 @@ typedef NS_ENUM(NSInteger, VSAlertControllerAnimationStyle) { */ @property (NS_NONATOMIC_IOSONLY, strong, nonnull) UIFont *alertMessageTextFont UI_APPEARANCE_SELECTOR; +/** + The text alignment of the alert message + */ +@property (NS_NONATOMIC_IOSONLY, assign) NSTextAlignment alertMessageTextAlignment; + /** @name Configuring Interactive Alert Content */ diff --git a/Release/VSAlert.framework/Versions/A/VSAlert b/Release/VSAlert.framework/Versions/A/VSAlert index 225c73d..e1f63d5 100644 Binary files a/Release/VSAlert.framework/Versions/A/VSAlert and b/Release/VSAlert.framework/Versions/A/VSAlert differ diff --git a/VSAlert.xcodeproj/project.pbxproj b/VSAlert.xcodeproj/project.pbxproj index 62f2902..7a94ea7 100644 --- a/VSAlert.xcodeproj/project.pbxproj +++ b/VSAlert.xcodeproj/project.pbxproj @@ -39,6 +39,8 @@ 0710F9C91F8B1E3500C6D084 /* VSAlertAction.m in Sources */ = {isa = PBXBuildFile; fileRef = 0710F9C21F8B1E1000C6D084 /* VSAlertAction.m */; }; 0710F9CA1F8B1E3700C6D084 /* VSAlertController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0710F9C51F8B1E1000C6D084 /* VSAlertController.m */; }; 0710F9D41F8BCDBE00C6D084 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0710F9D21F8BCDB700C6D084 /* CoreGraphics.framework */; }; + 078C277C207D246800DF9D0C /* VSAlertTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 078C277B207D246800DF9D0C /* VSAlertTests.m */; }; + 078C277E207D246800DF9D0C /* libVSAlert.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 07F00EFF1F8A972D006FAC96 /* libVSAlert.a */; }; 07FF9E171F8FEF8C002966A3 /* AlertExample.m in Sources */ = {isa = PBXBuildFile; fileRef = 07FF9E111F8FEF03002966A3 /* AlertExample.m */; }; 07FF9E181F8FEF8E002966A3 /* AlertExampleSettingsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 07FF9E0F1F8FEF03002966A3 /* AlertExampleSettingsViewController.m */; }; 07FF9E191F8FEF92002966A3 /* AlertExampleViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 07FF9E0E1F8FEF03002966A3 /* AlertExampleViewController.m */; }; @@ -63,6 +65,13 @@ remoteGlobalIDString = 07F00EFE1F8A972D006FAC96; remoteInfo = VSAlert; }; + 078C277F207D246800DF9D0C /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 07F00ED91F8A96D9006FAC96 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 07F00EFE1F8A972D006FAC96; + remoteInfo = VSAlert; + }; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -88,6 +97,9 @@ 0710F9C51F8B1E1000C6D084 /* VSAlertController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = VSAlertController.m; sourceTree = ""; }; 0710F9CE1F8B1EA300C6D084 /* module.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; path = module.modulemap; sourceTree = ""; }; 0710F9D21F8BCDB700C6D084 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/CoreGraphics.framework; sourceTree = DEVELOPER_DIR; }; + 078C2779207D246800DF9D0C /* VSAlertTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = VSAlertTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 078C277B207D246800DF9D0C /* VSAlertTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = VSAlertTests.m; sourceTree = ""; }; + 078C277D207D246800DF9D0C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 07A7C4051F8D655100A71580 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 07A7C4071F8D655700A71580 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; 07F00EFF1F8A972D006FAC96 /* libVSAlert.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libVSAlert.a; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -109,6 +121,14 @@ /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ + 078C2776207D246800DF9D0C /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 078C277E207D246800DF9D0C /* libVSAlert.a in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 07F00EFC1F8A972D006FAC96 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -160,6 +180,15 @@ name = Frameworks; sourceTree = ""; }; + 078C277A207D246800DF9D0C /* VSAlertTests */ = { + isa = PBXGroup; + children = ( + 078C277B207D246800DF9D0C /* VSAlertTests.m */, + 078C277D207D246800DF9D0C /* Info.plist */, + ); + path = VSAlertTests; + sourceTree = ""; + }; 07F00ED81F8A96D9006FAC96 = { isa = PBXGroup; children = ( @@ -167,6 +196,7 @@ 0710F9A91F8B09FB00C6D084 /* README.md */, 07F00EFA1F8A96FB006FAC96 /* VSAlert */, 07FF9DF11F8FEE85002966A3 /* VSAlert-Example */, + 078C277A207D246800DF9D0C /* VSAlertTests */, 07F00EE41F8A96F4006FAC96 /* Products */, 0710F9D11F8BCDB700C6D084 /* Frameworks */, ); @@ -177,6 +207,7 @@ children = ( 07F00EFF1F8A972D006FAC96 /* libVSAlert.a */, 07FF9DF01F8FEE85002966A3 /* VSAlert-Example.app */, + 078C2779207D246800DF9D0C /* VSAlertTests.xctest */, ); name = Products; sourceTree = ""; @@ -274,6 +305,24 @@ /* End PBXHeadersBuildPhase section */ /* Begin PBXNativeTarget section */ + 078C2778207D246800DF9D0C /* VSAlertTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 078C2781207D246800DF9D0C /* Build configuration list for PBXNativeTarget "VSAlertTests" */; + buildPhases = ( + 078C2775207D246800DF9D0C /* Sources */, + 078C2776207D246800DF9D0C /* Frameworks */, + 078C2777207D246800DF9D0C /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 078C2780207D246800DF9D0C /* PBXTargetDependency */, + ); + name = VSAlertTests; + productName = VSAlertTests; + productReference = 078C2779207D246800DF9D0C /* VSAlertTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; 07F00EFE1F8A972D006FAC96 /* VSAlert */ = { isa = PBXNativeTarget; buildConfigurationList = 07F00F051F8A972D006FAC96 /* Build configuration list for PBXNativeTarget "VSAlert" */; @@ -316,12 +365,16 @@ 07F00ED91F8A96D9006FAC96 /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0920; + LastUpgradeCheck = 0930; TargetAttributes = { 0710F9B61F8B1CB800C6D084 = { CreatedOnToolsVersion = 9.0; ProvisioningStyle = Automatic; }; + 078C2778207D246800DF9D0C = { + CreatedOnToolsVersion = 9.3; + ProvisioningStyle = Automatic; + }; 07F00EFE1F8A972D006FAC96 = { CreatedOnToolsVersion = 9.0; ProvisioningStyle = Automatic; @@ -353,11 +406,19 @@ 0710F9B61F8B1CB800C6D084 /* Framework */, 07FA6E7C203F3B59005AC1A6 /* Documentation */, 07FF9DEF1F8FEE85002966A3 /* VSAlert-Example */, + 078C2778207D246800DF9D0C /* VSAlertTests */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ + 078C2777207D246800DF9D0C /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; 07FF9DEE1F8FEE85002966A3 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -417,6 +478,14 @@ /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ + 078C2775207D246800DF9D0C /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 078C277C207D246800DF9D0C /* VSAlertTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 07F00EFB1F8A972D006FAC96 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -448,6 +517,11 @@ target = 07F00EFE1F8A972D006FAC96 /* VSAlert */; targetProxy = 0710F9BC1F8B1CE500C6D084 /* PBXContainerItemProxy */; }; + 078C2780207D246800DF9D0C /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 07F00EFE1F8A972D006FAC96 /* VSAlert */; + targetProxy = 078C277F207D246800DF9D0C /* PBXContainerItemProxy */; + }; /* End PBXTargetDependency section */ /* Begin XCBuildConfiguration section */ @@ -471,15 +545,143 @@ }; name = Release; }; + 078C2782207D246800DF9D0C /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = Automatic; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + DEVELOPMENT_TEAM = Y88YPD4RJA; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + INFOPLIST_FILE = VSAlertTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 11.3; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + PRODUCT_BUNDLE_IDENTIFIER = com.varunsanthanam.VSAlertTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 078C2783207D246800DF9D0C /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_STYLE = Automatic; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEVELOPMENT_TEAM = Y88YPD4RJA; + ENABLE_NS_ASSERTIONS = NO; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + INFOPLIST_FILE = VSAlertTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 11.3; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_BUNDLE_IDENTIFIER = com.varunsanthanam.VSAlertTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; 07F00EDD1F8A96D9006FAC96 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; }; name = Debug; }; 07F00EDE1F8A96D9006FAC96 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; }; name = Release; }; @@ -534,7 +736,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; OTHER_CFLAGS = "-fembed-bitcode"; @@ -593,7 +795,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 10.0; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; MTL_ENABLE_DEBUG_INFO = NO; OTHER_CFLAGS = "-fembed-bitcode"; OTHER_LDFLAGS = "-ObjC"; @@ -761,6 +963,15 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + 078C2781207D246800DF9D0C /* Build configuration list for PBXNativeTarget "VSAlertTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 078C2782207D246800DF9D0C /* Debug */, + 078C2783207D246800DF9D0C /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 07F00EDC1F8A96D9006FAC96 /* Build configuration list for PBXProject "VSAlert" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/VSAlert/VSAlertController.h b/VSAlert/VSAlertController.h index 0661205..b4aeea9 100644 --- a/VSAlert/VSAlertController.h +++ b/VSAlert/VSAlertController.h @@ -212,6 +212,11 @@ typedef NS_ENUM(NSInteger, VSAlertControllerAnimationStyle) { */ @property (NS_NONATOMIC_IOSONLY, strong, nonnull) UIFont *alertMessageTextFont UI_APPEARANCE_SELECTOR; +/** + The text alignment of the alert message + */ +@property (NS_NONATOMIC_IOSONLY, assign) NSTextAlignment alertMessageTextAlignment; + /** @name Configuring Interactive Alert Content */ diff --git a/VSAlert/VSAlertController.m b/VSAlert/VSAlertController.m index 3450213..9fc6c55 100644 --- a/VSAlert/VSAlertController.m +++ b/VSAlert/VSAlertController.m @@ -528,6 +528,10 @@ @interface VSAlertController () - (instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER; - (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil NS_DESIGNATED_INITIALIZER; +// flag methods as deprecated ++ (nonnull instancetype)appearanceWhenContainedIn:(nullable Class)ContainerClass, ... __attribute__((deprecated)); ++ (nonnull instancetype)appearanceForTraitCollection:(nonnull UITraitCollection *)trait whenContainedIn:(nullable Class)ContainerClass, ... __attribute__((deprecated)); + @end @implementation VSAlertController { @@ -555,6 +559,7 @@ @implementation VSAlertController { @synthesize alertMessageTextColor = _alertMessageTextColor; @synthesize alertTitleTextFont = _alertTitleTextFont; @synthesize alertMessageTextFont = _alertMessageTextFont; +@synthesize alertMessageTextAlignment = _alertMessageTextAlignment; @synthesize textFields = _textFields; @synthesize animationStyle = _animationStyle; @synthesize dismissOnBackgroundTap = _dismissOnBackgroundTap; @@ -830,6 +835,19 @@ - (void)setAlertMessageTextFont:(UIFont *)alertMessageTextFont { } +- (NSTextAlignment)alertMessageTextAlignment { + + return _alertMessageTextAlignment; + +} + +- (void)setAlertMessageTextAlignment:(NSTextAlignment)alertMessageTextAlignment { + + _alertMessageTextAlignment = alertMessageTextAlignment; + self.alertMessage.textAlignment = self.alertMessageTextAlignment; + +} + - (BOOL)hasTextFieldAdded { return self.textFields.count > 0; @@ -869,17 +887,18 @@ + (instancetype)appearanceWhenContainedInInstancesOfClasses:(NSArray)ContainerClass, ... { - + return nil; - + } + (nonnull instancetype)appearanceWhenContainedIn:(nullable Class)ContainerClass, ... { - + return nil; - + } @@ -1010,6 +1029,7 @@ - (void)_setUpAlertController { _alertTitleTextFont = [VSAlertController appearance].alertTitleTextFont ? [VSAlertController appearance].alertTitleTextFont : [UIFont systemFontOfSize:17.0f weight:UIFontWeightSemibold]; _alertMessageTextColor = [VSAlertController appearance].alertMessageTextColor ? [VSAlertController appearance].alertMessageTextColor : [UIColor blackColor]; _alertMessageTextFont = [VSAlertController appearance].alertMessageTextFont ? [VSAlertController appearance].alertMessageTextFont : [UIFont systemFontOfSize:15.0f weight:UIFontWeightRegular]; + _alertMessageTextAlignment = NSTextAlignmentCenter; // Set instance read-only properties _style = VSAlertControllerStyleAlert; @@ -1307,7 +1327,7 @@ - (void)_setUpAlertMessage { self.alertMessage.font = self.alertMessageTextFont; self.alertMessage.textColor = self.alertMessageTextColor; self.alertMessage.numberOfLines = 0; - self.alertMessage.textAlignment = NSTextAlignmentCenter; + self.alertMessage.textAlignment = self.alertMessageTextAlignment; self.alertMessage.translatesAutoresizingMaskIntoConstraints = NO; [self.alertView addSubview:self.alertMessage]; @@ -1493,7 +1513,7 @@ - (void)_processActions { if (_cancelActions.count > 1) { - os_log_info(alert_log, "WARNING: Alerts with more than 1 ""Cancel"" action are not advisable"); + os_log_info(alert_log, "WARNING: Alerts with more than 1 ""cancel"" action are not recommended"); } diff --git a/VSAlertTests/Info.plist b/VSAlertTests/Info.plist new file mode 100644 index 0000000..6c40a6c --- /dev/null +++ b/VSAlertTests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/VSAlertTests/VSAlertTests.m b/VSAlertTests/VSAlertTests.m new file mode 100644 index 0000000..8ea7206 --- /dev/null +++ b/VSAlertTests/VSAlertTests.m @@ -0,0 +1,38 @@ +// +// VSAlertTests.m +// VSAlertTests +// +// Created by Varun Santhanam on 4/10/18. +// + +#import + +@interface VSAlertTests : XCTestCase + +@end + +@implementation VSAlertTests + +- (void)setUp { + [super setUp]; + // Put setup code here. This method is called before the invocation of each test method in the class. +} + +- (void)tearDown { + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. +} + +- (void)testPerformanceExample { + // This is an example of a performance test case. + [self measureBlock:^{ + // Put the code you want to measure the time of here. + }]; +} + +@end