Is there a way to make custom browser default in iOS instead of Safari? - ios

Is there a way to programmatically make your app's custom browser the default one instead of Safari in iOS? I remember having seen one project that seemed to do something similar but unable to recollect which one it was? If it was possible, will Apple approve such apps or reject them?
Thanks,
Paddy

Thanks for ask question
Please do refer this link.
Might be it will help you.
You can use as follow.
1) Install library manually or using pods.
2) Do use as follow.
UINavigationController *webBrowserNavigationController = [KINWebBrowserViewController navigationControllerWithWebBrowser];
[self presentViewController:webBrowserNavigationController animated:YES completion:nil];
KINWebBrowserViewController *webBrowser = [webBrowserNavigationController rootWebBrowser];
[webBrowser loadURLString:#"http://www.example.com"];
Advantage of this library:
Features
iOS 7 & 8 support for iPhone and iPad devices
Safari-like interface
Animated progress bar
Customizable UI including tint color
Portrait and landscape orientation support
Use with existing UINavigationController or present modally
Delegate protocol for status callbacks
Action button to allow users to copy URL, share, or open in Safari & Google Chrome
UPDATE:
Sorry for the huge misunderstanding between us.
I am sorry to say that is not Possible to make custom browser default in iOS instead of Safari?

Related

Multiple webview in an app or one

I'm creating an ios/android app that is implemented with partially native code and html5/css and built-in mobile webkit, I need to make it support both ios and Android, hence the html5/css selection. In my app I created a tabbar with 4 tab buttons, each tabview contains a webview, the tabs and tabbars are implemented natively, meaning the code for this is either objective-c or Java. What happens in those webviews are html5/css/js... I wonder if this is the appropriate way to implement it, or should I wrap the whole thing up in one single webview, and implement everything using html5, including the tabbar. Or let me ask this way, what did facebook do with its tabbars in its app? I'm concerning about user experience and seamless transition/animation.
If I can mimic the native ios/Android tabbar using html5, how may I? Anyone could maybe provide a link to a tutorial? Thanks!

Special Transition/Effect on the AppStore on iPad

I want to know if there is a Library that produces the same effect as we have on the AppStore when we view an app and see the details of the app.
I want to use it on my iPad application.
(If you want to see the effect, it's only available on iPad)
This may help.
As well as This.
And This
The thing you want to use for this purpose is the UIViewController Transitioning API introduced in iOS7
There are plenty tutorial on custom transition in the web. (see the links)

Change font, font size of toast in iOS

I'm have used Toast before in Android. Is there a way to customize the font or font size of Toast on an UIView in iOS?
I am aware of the makeToast function, which seems to only have optional parameters for duration, position, image, and title. Or is there another messaging/notification system I should be using instead?
I already found this answer for Android.
Turns out toast is not native to obj-C like I originally thought? Growl/toast style notifications library for iOS
It looks like the github project was already included in some of the legacy code I've been going through... but adding such custom features would not be an iOS issue like I thought, it'd be working on the github project.
Also, turns out that there's a native iOS library message system: UIAlertView
There is no Toast-like in iOS, but you can use something similar called popover.
Popovers are from the documentations:
is used to manage the presentation of content in a popover. You use
popovers to present information temporarily. The popover content is
layered on top of your existing content and the background is dimmed
automatically. The popover remains visible until the user taps outside
of the popover window or you explicitly dismiss it. Popover
controllers are for use exclusively on iPad devices. Attempting to
create one on other devices results in an exception. However popovers
only available in iPads.
I would recommend the following control for you to use on iPhone and iPad, very easy to use and implement.
https://github.com/50pixels/FPPopover

How can I inspect elements on native iOS application

I am running an iOS native app on iOS Simulator and would like to inspect the elements on the app to get the ID.
Does anyone knows how this can be done?
Note: Please, this question is for iOS native App not Web based app!
Thanks
It sounds like you may be looking for something like Firebug or the Chrome Inspector for your native app? I'm not sure what you mean by "ID". Interface elements in iOS don't really have IDs the same way DOM elements have IDs.
You should check out the Spark Inspector (http://www.sparkinspector.com/), which allows you to see the views of your app and modify them at runtime - it may help you see what you're looking for. Full disclosure: I am the author of the app ;-)
There is a new app, called Reveal, that does an incredible job.
Not only you can check view's properties, you can also view all the app in a "exploded" 3D view, change the sizes and properties.
Specially for iOS 7, where the view controller starts from the beginning of the screen (and not below the navigation bar), it can be really useful.
You can download the trial at http://revealapp.com and decide which license you should get.
There are two Best ways for this -
Use Accessibility Inspector which is Apples's inbuilt tool so you don't need any other support .
As you will be using Xcode mostly for you code part, there is an option to play UI recording which capture all the actions and elements that you interact with on native app.
You need to inspect the App's Bundle.
Check this answer on stackoverflow, to get the appID: https://stackoverflow.com/a/8883166/933887
Appium has an inspector for ios applications.
This is the link for appium: http://appium.io/
and in this video you can see the inspector in action: https://www.youtube.com/watch?v=jQZTRz2W9xg

MPMediaPickerController missing search functionality on the iPad

When setting up an MPMediaPickerController with the same code the search functionality works on the iPhone but not on the iPad. There's a search box in the picker on iPhone, but not on iPad.
Is there a way to enable this functionality on the iPad?
I filed a bug report about this (ID: 12157125) back in August nothing has come from it yet, so no there is no way to enable this functionality. However, you could remake the picker from the ground up using a combination of a UITableView and some MPMediaQueries, leaving you free to add your own search functionality.

Resources