I have used an open source API (VFR reader) to create an iOS app that displays pdf files. Now I want to disable the Retina display in my APP. How can I Do this .
Please help me out..
You can use the enableRetinaDisplay:NO method for this.
Related
How to get the text content of screen? Both from a WebView and a Native App.
For example, from the following image, I would like to get/extract/retrieve the title and the first two paragraphs.
On Android this is possible using the accessibility tools. But so far I haven't found how to do something like that on iOS.
I would like to know how to do this natively using Swift / Xcode. But if is possible with EXPO or React Native it would also help a lot. Thank you.
I think that what you are asking is the accessibility identifier.
Under the identity inspector you can find the Accessibility section and there you have a text field for an identifier.
Alternatively you can set this via code
for example:
submitButton.accessibilityIdentifier = "submitButton"
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?
I have been looking around and haven't found a good answer for this.
Instagram uses an image browser/picker like . As you can see above the images from the photo gallery are displayed in a grid below and you can directly choose image from there instead of using the default image picker layout.
The Groupme app also does something similar..
Where images are displayed in a horizontal scrollable list and you can just choose from this.
I have been reading up on the image picker and the documentation says that subclassing is not support.
So my question is:
How do you create something like this?
If this is just a custom view that loads the images stored on the device. How do I access those images?
I just need a starting point and what to specifically look for (custom browser/image picker etc).
Thanks in advance.
You use the ALAssetsLibrary APIs, docs here.
I want to open the default image gallery inside my application, just like the way its done in the Facebook app for BlackBerry. Any help is appreciated.
Don't know if you can invoke the default gallery. You could either use net.rim.device.api.ui.picker.FilePicker since 5.0 or implement your own gallery like this
1) I load a URL in UIWebview ,which has some images .I want to enable the option,"save photo" which appears when you long-press the images in webview.Currently this option is available in Safari Browser.But I couldn't find any option in UIwebView class, And UIdataDetectorType struct dont have option for images (as of my knowledge.)
So how do I have this in my APP?
2) when I open some PDFs in webview ,I want to provide an option to open the pdf in iBooks.
How to do?
Thanks in advance.
GopiKrishnAn
I think this should be 2 separate questions.
1/ Read this blog post by iCab's author: Customize the contextual menu of UIWebView. It shows you exactly how to implement long press detection in a UIWebView.
As a bonus, his blog is a wealth of useful information about UIWebView.
2/ You need to work with UIDocumentInteractionController. As its initialization method (+ (UIDocumentInteractionController *)interactionControllerWithURL:(NSURL *)url) only works with a local URL, I guess you need to download the PDF and save it somewhere before you are able to provide such options.