Sha256: ac5ad52728b9e8b0fdc8790f235e4527c7bf57134f7deb1208024e20cdeaf0ea

Contents?: true

Size: 287 Bytes

Versions: 7

Compression:

Stored size: 287 Bytes

Contents

# Search bar with background and no padding
class UISearchBarCustom < UISearchBar
  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
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
motion-prime-0.4.2 motion-prime/support/ui_search_bar_custom.rb
motion-prime-0.4.1 motion-prime/support/ui_search_bar_custom.rb
motion-prime-0.4.0 motion-prime/support/ui_search_bar_custom.rb
motion-prime-0.3.3 motion-prime/support/ui_search_bar_custom.rb
motion-prime-0.3.2 motion-prime/support/ui_search_bar_custom.rb
motion-prime-0.3.1 motion-prime/support/ui_search_bar_custom.rb
motion-prime-0.3.0 motion-prime/support/ui_search_bar_custom.rb