Skip to content

Commit

Permalink
Merge pull request #20 from JonyFang/develop
Browse files Browse the repository at this point in the history
update readme
  • Loading branch information
JonyFang committed Jun 15, 2019
2 parents 2cb8f88 + 08ddd84 commit afc0ad3
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,12 @@

## Example

To run the `Example` project, clone the Repo, and start `Example` in Xcode.
To run the `FFPopup` project, clone the Repo, and start `FFPopup` in Xcode.

```bash
$ git clone https://github.com/JonyFang/FFPopup.git
$ cd FFPopup/Example
$ pod install
$ open FFPopup_Example.xcworkspace
$ cd Shell && sh install-bundle.sh && sh install-pods.sh && cd ..
$ open FFPopup.xcworkspace
```

## Installation
Expand Down Expand Up @@ -206,23 +205,23 @@ Import the library where you want to use it.
```objc
#import <FFPopup.h>

[[FFPopup popupWithContentView:self.contentView] show];

// Do something...

[FFPopup dismissPopupForView:self.contentView animated: YES];
- (void)showPopup {
FFPopup *popup = [FFPopup popupWithContentView:self.contentView showType:FFPopupShowType_BounceIn dismissType:FFPopupDismissType_ShrinkOut maskType:FFPopupMaskType_Dimmed dismissOnBackgroundTouch:YES dismissOnContentTouch:NO];
FFPopupLayout layout = FFPopupLayoutMake(FFPopupHorizontalLayout_Center, FFPopupVerticalLayout_Center);
[popup showWithLayout:layout];
}
```

- Swift

```swift
import FFPopup

FFPopup.init(contentView:self.contentView).show()
// Do something...
FFPopup.dismiss(for:self.contentView animated:true)
func showPopup() {
let popup = FFPopup(contetnView: self.contentView, showType: .bounceIn, dismissType: .shrinkOut, maskType: .dimmed, dismissOnBackgroundTouch: true, dismissOnContentTouch: false)
let layout = FFPopupLayout(horizontal: .center, vertical: .center)
popup.show(layout: layout)
}
```

## Customization
Expand Down

0 comments on commit afc0ad3

Please sign in to comment.