Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jinht authored Dec 6, 2016
1 parent 8001523 commit eb8b7e6
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 8,7 @@
### Function Description
1. 传统引导页功能;
2. 引导页之间渐变切换;
3. 个性化进入按钮实现。<br>
3. 简洁的个性化设置UI及切换动画。<br>


### How to use
Expand All @@ -29,21 29,35 @@
- (id)initWithCoverImageNames:(NSArray *)coverNames withBackgroundImageNames:(NSArray *)bgNames;
```

#### 3. 个性化进入按钮实现:通过相应属性设置`<跳过>`按钮和`<Enter>`按钮
#### 3 简洁的个性化设置UI及切换动画
##### 3.1 设置`<Enter>`按钮
```oc
/** 是否添加<跳过>按钮(默认不需要) */
@property (nonatomic, assign) BOOL isNeedSkipButton;
/** <跳过>按钮背景图片名 */
@property (nonatomic, copy) NSString *skipButtonBackgroundImageName;
/** 初始化方法
* coverNames:封面图片名数组(多为带文字图片)
* bgNames:背景图片名数组
* withEnterButton:<Enter>按钮
*/
- (id)initWithCoverImageNames:(NSArray *)coverNames withBackgroundImageNames:(NSArray *)bgNames withEnterButton:(UIButton *)button;
```
注:假使自己传入<跳过>按钮背景图片,需要注意一下大小,按钮大小设置是根据图片大小动态设置的。

##### 3.2 设置`<跳过>`按钮 && `exitAnimationType`
##### 3.1 设置`<Enter>`按钮
```oc
/** 是否添加<跳过>按钮(默认不需要) */
@property (nonatomic, assign) BOOL isNeedSkipButton;
/** <跳过>按钮背景图片名 */
@property (nonatomic, copy) NSString *skipButtonBackgroundImageName;
/** 引导页退出切换动画类型(不传值为不添加切换动画,默认不添加动画)
* @"fade" || @"moveIn" || @"push" || @"reveal" 建议使用:@"fade" 类型
*/
@property (nonatomic, copy) NSString *exitAnimationType;
```
注:假使自己传入<跳过>按钮背景图片,需要注意一下大小,按钮大小设置是根据图片大小动态设置的;另外,在添加引导页退出切换动画类型时,需要注意一下demo中`AppDelegate.m``didClickedEnter`block内部写法,如下:
```oc
// 添加引导页退出切换动画时,切记这样写!!!
[weakSelf.window.rootViewController.view addSubview:[[ViewController alloc] init].view];
```


###Remind
Expand Down

0 comments on commit eb8b7e6

Please sign in to comment.