Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it can't use in UITableViewController #51

Closed
utfqvfhpyygy opened this issue Nov 14, 2015 · 4 comments
Closed

it can't use in UITableViewController #51

utfqvfhpyygy opened this issue Nov 14, 2015 · 4 comments

Comments

@utfqvfhpyygy
Copy link

it can't use in UITableViewController

@andreamazz
Copy link
Owner

It can be used without issues.
Care to explain your issue besides the one liner?

@utfqvfhpyygy
Copy link
Author

#import <UIKit/UIKit.h>

@interface NewMyTableViewController : UITableViewController

@EnD

  • (void)viewDidLoad {
    [super viewDidLoad];

    [self.chageRoleButton addTarget:self action:@selector(gotoChageRole) forControlEvents:UIControlEventTouchUpInside];

self.popTip = [AMPopTip popTip];
[self.popTip showText:@"test" direction:AMPopTipDirectionUp maxWidth:200 inView:self.view fromFrame:self.chageRoleButton.frame];
}

it is no happend.
i can't check the problem

@utfqvfhpyygy
Copy link
Author

i use in uitablecontroller that can't show the tips

@andreamazz
Copy link
Owner

Yeah, I need more than a piece of code that I can't run.
Anyway, the type of the controller makes no difference, here's a small sample with a table view controller:
http://d.pr/f/22YF

My first guess is that the frame of changeRoleButton pushes the view off the screen. Also, if the frame is inside a cell, consider the contentOffset of your table when providing the frame. Use the view hierarchy inspector to figure out where the popTip is displayed, or post some code that I can actually run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants