Open yestoall opened 10 years ago
is anybody out there? ;)
The top_level_view
method is defined for all UIView
subclasses, so this error is either very strange, or easily solved by fixing SearchCell
's parent class.
is very strange... the parent class with the UITableView is also a auto layout. i can't find the bug and i'm not using auto layout to work ok.
wat? sorry, i don't follow that sentence...
If you can include the source files (the table view delegate and table cell classes should be enough) i'd be happy to take a look, see if anything jumps out at me.
sorry about my english, my spanish is better :)
more readeable now: https://gist.github.com/yestoall/7828487
K let's see here, one thing that I notice is you are including Teacup::Layout
, but that is already included by the UIView
class. Not sure what happens when you include it twice, but you don't need to, anyway.
class SearchCell < UITableViewCell
- include Teacup::Layout
stylesheet :search
Can you include a project that reproduces this error? I don't have time to create a project that has this same error. I'm using Teacup to create/style UITableViewCells and have never seen this error, though I suspect it's related to using the auto
method.
i'm having this runtime error:
layout.rb:273:in
top_level_view': No default view has been defined for SearchCell. Implement
top_level_view`. (RuntimeError)in my custom UITableViewCell class i have this
i don't know which parameter i need to send to my auto layout