mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-05-30 17:33:53 +08:00
Fix comment on new view helper method.
This commit is contained in:
@@ -70,13 +70,13 @@ module ProMotion
|
||||
end
|
||||
|
||||
def closest_parent(type)
|
||||
# iterate up the view hierarchy to find the table containing this cell/view
|
||||
# iterate up the view hierarchy to find the parent element of "type" containing this view
|
||||
this_view = self.superview
|
||||
while this_view != nil do
|
||||
return this_view if this_view.is_a? type
|
||||
this_view = this_view.superview
|
||||
end
|
||||
nil # this view is not within a tableView
|
||||
nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user