Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

ghostery/banshee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

banshee

An iOS browser built on top of UIWebView - screenshot

This projects implements tabs, bookmarks, address bar, search bar, loading indicators, and much more for UIWebView. Currently it only supports iOS 7.0 and greater with ARC-only. See branches for older versions.

Installation

  • Copy "Browser" and "Browser Resources" folder into your xcode project.

  • This project is cocoapods compatible if you prefer installing it via cocoapods.

Dependencies

  • CoreData.framework
  • SystemConfiguration.framework
  • libxml2.2.dylib

To include these dependencies you need to add them to your linked libraries. To do this click on project name in Project Navigator then click on your project target. Then under the "Build Phases" section you will see a "Link Binary With Libraries" item, expand it and click the "+" button.

Since libxml is not a framework but rather a dylib you will also have to add it to the head search paths. To do this go to "Build Settings" section of xcode.Set the "Head Search Paths": $(SDKROOT)/usr/include/libxml2

Integration

The recommended way to integrate the browser code is to make your view controller a subclass of the browser controller. Which should look something like this:

@interface ViewController : BrowserViewController

AppDelegate

Your app delegate needs to inherit from the browser delegate as so: #import "BrowserDelegate.h"

@interface AppDelegate : BrowserDelegate <UIApplicationDelegate>

The browser code does reference the app delegate, so you must have an AppDelegate Task. In the app delegate you should place this code in your didFinishLaunchingWithOptions:

self.viewController = [[BrowserViewController alloc] init];

Misc

There is a customButton UIBarButtonitem which you can customize programmatically in your view controller. This button appears in the bottom toolbar on the right. You can also overwrite the click handler method -(IBAction) customButtonClick:(id)sender.

There are now 2 custom buttons.

License

Copyright (c) 2014 Evidon unless otherwise specified

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.

About

An iOS browser built on top of UIWebView

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages