Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
isaced committed Feb 3, 2016
1 parent d3ecf98 commit 437dac8
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,38 @@ first thing, import the main header file
#import "FEPopupMenuController.h"
```

then, you can using `FEPopupMenuItem` initialize `FEPopupMenuController` , support **text** or **text&icon**
then, you can using `FEPopupMenuItem` initialize `FEPopupMenuController` , support **text** or **text&icon** (icon size 15x15 point)

```
FEPopupMenuItem *item = [[FEPopupMenuItem alloc] initWithTitle:@"title" iconImage:image action:^{ NSLog(@"selected item1..."); }];
FEPopupMenuController *popupMenuController = [[FEPopupMenuController alloc] initWithItems:@[item]];
FEPopupMenuItem *item = [[FEPopupMenuItem alloc] initWithTitle:@"title" iconImage:image action:^{
NSLog(@"selected item1...");
}];
FEPopupMenuController *popupMenuController = [[FEPopupMenuController alloc] initWithItems:@[item]];
```

Suggest : The title can not be longer than four characters.
Suggest : The title can not be longer than four characters. and item not too much.

show time

```
[popupMenuController showInViewController:self atPosition:CGPointMake(100,100);
```

dismiss

```
[popupMenuController dismiss];
```

### Other

- ##### change title color of each item

You can set `titleColor` to change the title color of each FEPopupMenuItem, respectively.

- ##### Screen Rotation

You can call the `moveContentViewToPosition` method to change the location of the nemu in real time.(see demo)

### Cocoapods

Expand Down

0 comments on commit 437dac8

Please sign in to comment.