{"action":"created","issue":{"url":"https://api.github.com/repos/StefanLage/SLPagingView/issues/4","labels_url":"https://api.github.com/repos/StefanLage/SLPagingView/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/StefanLage/SLPagingView/issues/4/comments","events_url":"https://api.github.com/repos/StefanLage/SLPagingView/issues/4/events","html_url":"https://github.com/StefanLage/SLPagingView/issues/4","id":53968417,"number":4,"title":"How to use this with ViewControllers instead of Views ?","user":{"login":"HiroshiHorie","id":548776,"avatar_url":"https://avatars.githubusercontent.com/u/548776?v=3","gravatar_id":"","url":"https://api.github.com/users/HiroshiHorie","html_url":"https://github.com/HiroshiHorie","followers_url":"https://api.github.com/users/HiroshiHorie/followers","following_url":"https://api.github.com/users/HiroshiHorie/following{/other_user}","gists_url":"https://api.github.com/users/HiroshiHorie/gists{/gist_id}","starred_url":"https://api.github.com/users/HiroshiHorie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HiroshiHorie/subscriptions","organizations_url":"https://api.github.com/users/HiroshiHorie/orgs","repos_url":"https://api.github.com/users/HiroshiHorie/repos","events_url":"https://api.github.com/users/HiroshiHorie/events{/privacy}","received_events_url":"https://api.github.com/users/HiroshiHorie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-10T19:23:54Z","updated_at":"2015-01-11T16:01:56Z","closed_at":null,"body":"Very nice project I was looking for but,\r\nHow to use this with ViewControllers instead of Views ?\r\n"},"comment":{"url":"https://api.github.com/repos/StefanLage/SLPagingView/issues/comments/69499310","html_url":"https://github.com/StefanLage/SLPagingView/issues/4#issuecomment-69499310","issue_url":"https://api.github.com/repos/StefanLage/SLPagingView/issues/4","id":69499310,"user":{"login":"StefanLage","id":3008132,"avatar_url":"https://avatars.githubusercontent.com/u/3008132?v=3","gravatar_id":"","url":"https://api.github.com/users/StefanLage","html_url":"https://github.com/StefanLage","followers_url":"https://api.github.com/users/StefanLage/followers","following_url":"https://api.github.com/users/StefanLage/following{/other_user}","gists_url":"https://api.github.com/users/StefanLage/gists{/gist_id}","starred_url":"https://api.github.com/users/StefanLage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StefanLage/subscriptions","organizations_url":"https://api.github.com/users/StefanLage/orgs","repos_url":"https://api.github.com/users/StefanLage/repos","events_url":"https://api.github.com/users/StefanLage/events{/privacy}","received_events_url":"https://api.github.com/users/StefanLage/received_events","type":"User","site_admin":false},"created_at":"2015-01-11T16:01:56Z","updated_at":"2015-01-11T16:01:56Z","body":"Actually there is two ways for doing this, if you just want to put some UIViewController without customising the navigation bar you can implement using those constructors:\r\n\r\n``` objective-c\r\n-(id)initWithNavBarControllers:(NSArray *)controllers\r\n-(id)initWithNavBarControllers:(NSArray *)controllers showPageControl:(BOOL)addPageControl\r\n-(id)initWithNavBarControllers:(NSArray *)controllers navBarBackground:(UIColor *)background showPageControl:(BOOL)addPageControl\r\n```\r\n\r\nThose three initialisers take the controller’s title as the navigation bar’s title.\r\n\r\n\r\nOtherwise if you want to customise the navigation’s items you can use one of those three constructors:\r\n\r\n``` objective-c\r\n-(id)initWithNavBarItems:(NSArray *)items controllers:(NSArray *)controllers\r\n-(id)initWithNavBarItems:(NSArray *)items controllers:(NSArray *)controllers showPageControl:(BOOL)addPageControl\r\n-(id)initWithNavBarItems:(NSArray *)items navBarBackground:(UIColor *)background controllers:(NSArray *)controllers showPageControl:(BOOL)addPageControl\r\n```"}}