Skip to content

Instantly share code, notes, and snippets.

@oliverbarreto
Created December 15, 2013 09:30
Show Gist options
  • Select an option

  • Save oliverbarreto/7970782 to your computer and use it in GitHub Desktop.

Select an option

Save oliverbarreto/7970782 to your computer and use it in GitHub Desktop.
search for a specific element with in an NSARRAY of Objects (i.g, an specific view within views arrays)
- (void)setupPageControlAppearance
{
UIPageControl * pageControl = [[self.view.subviews filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@"(class = %@)", [UIPageControl class]]] lastObject];
pageControl.pageIndicatorTintColor = [UIColor grayColor];
pageControl.currentPageIndicatorTintColor = [UIColor blackColor];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment