Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ An UIAlertView replacement with block syntax and fancy transition styles. As see
## Preview

![SIAlertView Screenshot](https://github.com/Sumi-Interactive/SIAlertView/raw/master/screenshot.png)
### Changed by Nododo
![SIAlertView ChangedByNododo](https://github.com/Nododo/SIAlertView/blob/master/SIAlertViewExample/SIAlertViewExample/SIAlertView.gif)

## Features

- 重新定义了messageLabel的对齐方式 (by Nododo)
- 根据message的高度决定messageLabel是否可以滑动 (by Nododo)
- use window to present
- happy with rotation
- block syntax
Expand Down
7 changes: 7 additions & 0 deletions SIAlertView/SIAlertView.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ typedef NS_ENUM(NSInteger, SIAlertViewTransitionStyle) {
SIAlertViewTransitionStyleDropDown
};

typedef NS_ENUM(NSInteger, SIAlertViewMessageAlignmentStyle) {
SIAlertViewMessageAlignmentStyleCenter = 0,
SIAlertViewMessageAlignmentStyleLeft,
SIAlertViewMessageAlignmentStyleRight
};

@class SIAlertView;
typedef void(^SIAlertViewHandler)(SIAlertView *alertView);

Expand All @@ -48,6 +54,7 @@ typedef void(^SIAlertViewHandler)(SIAlertView *alertView);
@property (nonatomic, assign) SIAlertViewTransitionStyle transitionStyle; // default is SIAlertViewTransitionStyleSlideFromBottom
@property (nonatomic, assign) SIAlertViewBackgroundStyle backgroundStyle; // default is SIAlertViewBackgroundStyleGradient
@property (nonatomic, assign) SIAlertViewButtonsListStyle buttonsListStyle; // default is SIAlertViewButtonsListStyleNormal
@property (nonatomic,assign) SIAlertViewMessageAlignmentStyle messageAlignmentStyle; // default is SIAlertViewMessageAlignmentCenter

@property (nonatomic, copy) SIAlertViewHandler willShowHandler;
@property (nonatomic, copy) SIAlertViewHandler didShowHandler;
Expand Down
Loading