You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* ready-improvements:
Fix tabs
Change installation steps
Update view controller initializer
Update language
Enums updated
Fix
Update first code sample
FIX: link to license file
Add license tag
Add badges to show downloads and pod version
`CFAlertViewController` is a library that helps you display and customise **alerts and action sheets** on iPad and iPhone. It offers screen rotation as well as an adaptive UI support. CFAlertViewController’s functionality is almost similar to the native UIAlertController.
3
7
<GIF>
4
8
@@ -14,70 +18,68 @@ We assume that your Cocoapods is already configured. If you are new to Cocoapods
14
18
15
19
1. Add `pod 'CFAlertViewController'` to your Podfile.
16
20
2. Install the pod(s) by running `pod install` in terminal (in folder where `Podfile` file is located).
17
-
3. Include CFAlertViewController wherever you need it with `#import "CFAlertViewController.h"`.
18
21
19
22
#### Install using Source file
20
-
1. Open the downloaded project in Xcode, then drag and drop folder named **CFAlertViewController** onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.
21
-
2. Include CFAlertViewController wherever you need it with `#import "CFAlertViewController.h"`.
23
+
Open the downloaded project in Xcode, then drag and drop folder named **CFAlertViewController** onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.
You can set the title of action button to be added.
109
112
110
113
##### Action Style
111
114
Configure the style of the action button that is to be added to alert view. Set `style` property of the above method with one of the following Action style
112
-
```objective-c
113
-
CFAlertActionStyleDefault,
114
-
CFAlertActionStyleCancel,
115
-
CFAlertActionStyleDestructive
115
+
```swift
116
+
CFAlertActionStyle.Default,
117
+
CFAlertActionStyle.Cancel,
118
+
CFAlertActionStyle.Destructive
116
119
```
117
120
118
121
##### Actions Alignment
119
122
Configure the alignment of the action button added to the alert view. Set `alignment` property of CFAction constructor with one of the following action types
120
-
```objective-c
121
-
CFAlertActionAlignmentJustified, // Action Button occupies the full width
122
-
CFAlertActionAlignmentRight,
123
-
CFAlertActionAlignmentLeft,
124
-
CFAlertActionAlignmentCenter
123
+
```swift
124
+
CFAlertActionAlignment.justified, // Action Button occupies the full width
0 commit comments