Class: MPSearchBarCustom
- Inherits:
-
UISearchBar
- Object
- UISearchBar
- MPSearchBarCustom
- Defined in:
- motion-prime/support/mp_search_bar_custom.rb
Overview
Search bar with background and no padding
Instance Method Summary collapse
Instance Method Details
#layoutSubviews ⇒ Object
3 4 5 6 7 8 9 |
# File 'motion-prime/support/mp_search_bar_custom.rb', line 3 def layoutSubviews super text_field = subviews.objectAtIndex(0).subviews.detect do |view| view.is_a?(UISearchBarTextField) end text_field.frame = CGRectMake(0, 0, 320, 44) end |