Skip to content

Instantly share code, notes, and snippets.

@mattsgarrison
Created April 14, 2014 20:09
Show Gist options
  • Save mattsgarrison/10679119 to your computer and use it in GitHub Desktop.
Save mattsgarrison/10679119 to your computer and use it in GitHub Desktop.
module RubyMotionQuery
module Stylers
class UIPageControlStyler < UIControlStyler
# Your custom styler methods here
def current_page
view.currentPage
end
def current_page=(value)
view.currentPage=value
end
def number_of_pages
view.numberOfPages
end
def number_of_pages=(value)
view.numberOfPages = value
end
def page_indicator_tint_color
view.pageIndicatorTintColor
end
def page_indicator_tint_color=(color)
view.pageIndicatorTintColor = color
end
def current_page_indicator_tint_color
view.currentPageIndicatorTintColor
end
def current_page_indicator_tint_color=(color)
view.currentPageIndicatorTintColor = color
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment