Skip to content

Instantly share code, notes, and snippets.

@fluidsonic
Created November 19, 2015 21:58
Show Gist options
  • Save fluidsonic/981e0b86661abb30a0ed to your computer and use it in GitHub Desktop.
Save fluidsonic/981e0b86661abb30a0ed to your computer and use it in GitHub Desktop.
UIPageControl madness
(lldb) po 0x12fbada50
<UIPageControl: 0x12fbada50; frame = (134.5 46.5; 7 37); autoresize = W; userInteractionEnabled = NO; layer = <WLayer: 0x12fbabe80>>
(lldb) p (NSInteger)[0x12fbada50 numberOfPages]
(NSInteger) $2 = 1
(lldb) p (NSInteger)[0x12fbada50 currentPage]
(NSInteger) $3 = 0
(lldb) p (void)[0x12fbada50 setCurrentPage:1]
(lldb) p (NSInteger)[0x12fbada50 currentPage]
(NSInteger) $4 = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment