-
Notifications
You must be signed in to change notification settings - Fork 62
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
Incorrect size and location in UITableViewController #2
Comments
Hi, thanks for reporting, in which |
Im accessing it in a UITableView controller. This is my code in didSelectRowAtIndexPath |
Got it, can you check the bounds of the view in
|
|
Good, the size is non-zero. What if you remove |
It looks like Dodo can not be used in UITableViewController. UITableViewController sets a UITableView as its root view. Dodo adds a subview to the UITableView when a message is displayed. But it looks like UITableView does not like when subviews are added to it manually. http://stackoverflow.com/questions/4641879/how-to-add-a-uiview-above-the-current-uitableviewcontroller A solution to this would be to use plain UIViewController instead of UITableViewController and add a UITableView to it in the storyboard. I know it sucks, sorry. I added a notice about this problem to the README. Does anybody know how to use Dodo with UITableViewController? |
Ah, good thinking. I will leave this ticket open, so others can contribute. |
@leongwq Thanks for your trick : Is working perfect |
extension String { let width = (self.tableView.frame.width - message.stringWidth - 5) / 2 |
After implementing the code, the location and size of the view is wrong. I am using a tableview
The text was updated successfully, but these errors were encountered: