{"action":"created","issue":{"url":"https://api.github.com/repos/mamaral/Onboard/issues/34","labels_url":"https://api.github.com/repos/mamaral/Onboard/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/mamaral/Onboard/issues/34/comments","events_url":"https://api.github.com/repos/mamaral/Onboard/issues/34/events","html_url":"https://github.com/mamaral/Onboard/pull/34","id":57392048,"number":34,"title":"Action blocks","user":{"login":"Vortec4800","id":396122,"avatar_url":"https://avatars.githubusercontent.com/u/396122?v=3","gravatar_id":"","url":"https://api.github.com/users/Vortec4800","html_url":"https://github.com/Vortec4800","followers_url":"https://api.github.com/users/Vortec4800/followers","following_url":"https://api.github.com/users/Vortec4800/following{/other_user}","gists_url":"https://api.github.com/users/Vortec4800/gists{/gist_id}","starred_url":"https://api.github.com/users/Vortec4800/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vortec4800/subscriptions","organizations_url":"https://api.github.com/users/Vortec4800/orgs","repos_url":"https://api.github.com/users/Vortec4800/repos","events_url":"https://api.github.com/users/Vortec4800/events{/privacy}","received_events_url":"https://api.github.com/users/Vortec4800/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-11T23:07:46Z","updated_at":"2015-02-11T23:35:03Z","closed_at":"2015-02-11T23:32:41Z","pull_request":{"url":"https://api.github.com/repos/mamaral/Onboard/pulls/34","html_url":"https://github.com/mamaral/Onboard/pull/34","diff_url":"https://github.com/mamaral/Onboard/pull/34.diff","patch_url":"https://github.com/mamaral/Onboard/pull/34.patch"},"body":"I made some changes to the action blocks. I know these are breaking changes, but with autocomplete it shouldn't be too big of an update for existing users. If this looks good I can make the necessary updates to the README file as well.\r\n\r\nThe idea here is to pass a reference to self in the action block, so the handler can do things like skip to the next page. Here is an example of the desired usage:\r\n\r\n\tOnboardingContentViewController *page = [OnboardingContentViewController contentWithTitle:@\"Page Title\" body:@\"Page body goes here.\" image:[UIImage imageNamed:@\"icon\"] buttonText:@\"Text For Button\" action:^(OnboardingContentViewController *onboardingContentController) {\r\n\t\t// start some long async process\r\n\r\n\t\t// show progress HUD or something\r\n\r\n\t\t// all done and everything succeeded, ready to move on\r\n\t\t[onboardingContentController moveNextPage];\r\n\t}];\r\n\r\nThis allows for a bit more control than just the `movesToNextViewController` property."},"comment":{"url":"https://api.github.com/repos/mamaral/Onboard/issues/comments/73988669","html_url":"https://github.com/mamaral/Onboard/pull/34#issuecomment-73988669","issue_url":"https://api.github.com/repos/mamaral/Onboard/issues/34","id":73988669,"user":{"login":"Vortec4800","id":396122,"avatar_url":"https://avatars.githubusercontent.com/u/396122?v=3","gravatar_id":"","url":"https://api.github.com/users/Vortec4800","html_url":"https://github.com/Vortec4800","followers_url":"https://api.github.com/users/Vortec4800/followers","following_url":"https://api.github.com/users/Vortec4800/following{/other_user}","gists_url":"https://api.github.com/users/Vortec4800/gists{/gist_id}","starred_url":"https://api.github.com/users/Vortec4800/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vortec4800/subscriptions","organizations_url":"https://api.github.com/users/Vortec4800/orgs","repos_url":"https://api.github.com/users/Vortec4800/repos","events_url":"https://api.github.com/users/Vortec4800/events{/privacy}","received_events_url":"https://api.github.com/users/Vortec4800/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T23:35:03Z","updated_at":"2015-02-11T23:35:03Z","body":"Sounds good, if I run into any other updates I'll send them in."}}