- All in one framework without any third-party dependency.
- Built in network request tool base on NSURLSession.
- Built in JSON struct.
- Built in model-to-JSON tool.
- Built in
Promisetool. - Easy to use.
User.fetchSelfFeed().then { (mediaArray, page) -> Void in
self.dataSource = mediaArray
dispatch_async(dispatch_get_main_queue(), {
self.tableView.reloadData()
})
}.error { (error) in
print(error)
}IGKit uses Webkit to handle login stuff, please refer Instagram Documentation for Authentication details.
So login could as easy as:
// in some viewController
Authentication.login([.Basic], viewController: self, done: { (error) -> Void in
//error should be nil if login succeed
})The first parameter here is Login Permission, see Document for details.
- iOS 8.0+
- Xcode 7.3+
Put github "CaptainTeemo/IGKit" in your cartfile and run carthage update from terminal, then drag built framework to you project.
