FTPopMenu icon indicating copy to clipboard operation
FTPopMenu copied to clipboard

Custom size

Open NBibikov opened this issue 9 years ago • 2 comments

Thanks for library! Question: how i can change of menu to custom?

NBibikov avatar Aug 17 '16 14:08 NBibikov

~~I don't seem to understand the Question. I guess you are ask about how to change the tableview into other UI maybe? I don't have the answer for that.~~

~~But I have a project which demonstrates how to put custom UI in a popover view controller. At https://github.com/liufengting/FTResourceRepo in FTIBInspectable folder~~

~~Also maybe take a look at my another library FTPopOverMenu, which is more easy and more complete.~~

Sorry, answer is at below.

liufengting avatar Aug 17 '16 14:08 liufengting

Try the following line :

- (IBAction)showAction:(UIButton *)sender
{


   [FTPopMenu showFTMenuForViewController:self
                                 fromView:sender
                                    title:@"I am Title"
                                menuArray:[self menuStringArray]
                       menuImageNameArray:[self menuStringArray]
                            perferedWidth:200
                                rowHeight:60
                                tintColor:[UIColor blackColor]
                                doneBlock:^(NSInteger selectedIndex) {

                                }
                              cancelBlock:^{

                              }];
}

liufengting avatar Aug 17 '16 14:08 liufengting