CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Kyle Adams.
KAWebViewController is a view controller class for UIWebView. I never found a similar solution that suited my needs so I decided to write my own basic UIWebViewController Class. You can use KAWebViewController outside a navigation controller with the use of KAWModalWebViewController.
Feel free to use this as base for your own UIWebView ViewController. This class currently supports:
Simply drag the KAWebViewController folder to your project.
!! Use of the Storyboard Segues is recommended. So don't forget to set KAWebViewController as the custom class of your destination ViewController. (Or KAWModalWebViewController if your using a modal segue)
Import the header file in the class you want to use KAWebViewController
#import KAWWebViewController
Fire of KAWebViewController via the setter (cleaner for use with prepareForSegue:):
KAWebViewController *kaw = (KAWebViewController *)segue.destinationViewController;
kaw.url = yourURL;
For the modal segue, use KAWModalWebViewController
instead. No need to import KAWModalWebViewController
.
Pushing the ViewController programmatically works, but it is not supported.
I do not know how far I want this project to go.
If you think this is a solid base for something more awesome, feel free to contribute to this project. Fork and tinker to your own needs or submit a pull request. Keep in mind that I want to keep this project as clean, update-proof and lightweight as possible. Simplicity is the key.
You can always contact me via e-mail: [email protected]
Currently KAWebViewController is brought to you by Kyle Adams.
Copyright (c) 2014 Kyle Adams
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.