unable to access the link of pdf in iphone - iphone

I am working on the application, in which I need to access the links which are in the pdf. Text which are in linked shows in different color but there is no click option in iphone to visit that links. same pdf shows link in browser and can be accessible.
Does anybody has any idea how this could be possible.
Thanks in advance.!!

You can use the webview to show the PDF and then in the webview make sure that the detectlink property is changed to true,this might solve your query

Related

How to link to page inside a flutter app?

When I click on the link I created on the website; If the application is installed, I want it to open and go to the page I want in the application, if the application is not installed, I want it to go to the app store or play store. I searched a lot but couldn't find it. Can you help me.
enter image description here
The solution for you would be deep linking or custom scheme. Them are practically, the same thing. Here you can find a link how to use them:
https://medium.com/flutter-community/deep-links-and-flutter-applications-how-to-handle-them-properly-8c9865af9283
This is exactly what Firebase Dynamic links was created for.
You can configure urls to redirect based on whether the user has the app installed or not.
https://firebase.google.com/docs/dynamic-links

Getting page number of pdf file Titanium Studio iPhone

I am creating an app to read PDF file. I'm using WebView to load the PDF file. Below is the code:
var wv = Ti.UI.createWebView({
backgroundColor:"gray",
border:1,
height:410,
url : "file.pdf"
});
win.add(wv);
I'm wondering if there is any way to get the page number of the PDF and to navigate page by page. I did not find any way to do this. Any help would be appreciated. Thanks in advance.
I don't think that this is possible with Titanium WebView component as it is. There are several PDF Reader plugins available for Titanium which you could use.
You can also try to use pdf.js and include it in WebView and try to manage the things you want. But i never tried to use pdf.js before i in Titanium or mobile environments at all.

Icon iphone apps

Is it possible to programmatically get access to the icon of other apps installed on an iPhone?
For example: if I need Instagram's icon, is it possible to display it in my app by accessing the icon in the Instagram bundle?
You're not allowed to access anything in other app bundles, but you can find the icons on the web if you know the URL. The icon images are in the app store page, which can be reached by (for example) here. The URL is subject to change, so saving a copy to your own app bundle would be the best way to ensure access to them.
http://a3.mzstatic.com/us/r1000/060/Purple/v4/76/94/e2/7694e29c-3060-9f8e-0135-cbeea67ec3af/mzl.qmyfwfsq.175x175-75.jpg
No you have to find the icon if you want to use it.
Nevertheless, you have an instagram-sdk for iOs. Maybe you should look at this.
You'll need to get the icon somewhere else. If it's specifically Instagram you can get it from their SDK, but for the mostpart, you'll need to find it on your own.
As far as I know you'll have to keep a set of icons in your own app, which you can show to the user at a certain point. But I'm sure you cannot access the icon of an app installed on the phone like that!

Combine Search Bar and URL Bar into One (WebView)

So I'm in the midst of updating my Web Browser app for iOS devices, from the ground up, and I'm trying to implement some more convenient features. One feature that seems to be really popular now, that I have been getting a lot of requests for, is the combination of a Google Search bar and a URL bar in one, like that of the Chrome application. Below is a screenshot of the Google Chrome app, and as you can see, they've made it so you can either enter in a search query like "apple ipad" and it will return a Google search page of 'Apple iPad', or you can enter in a URL "http://apple.com/ipad/" and it will load that URL.
I have looked all over the internet, but all I could find were tutorials on how to Search Google with value of the UITextField. I have a feeling that the best way to do this is to probably make a 'check'. Like if the entered value contains 'http://' 'www.' '.com' or no spaces, then load it as a URL, if not then load it in a Google Search page, and then have the webview load up the Google Search page.
If anybody could show me to the right direction, that would be great, or even supplying me with some code would be even greater. :)
Thanks! If anyone needs part of the code, just ask.
I have quickly coded up a class and uploaded it to my github account that you can use which is located HERE
I have also made a quick video on how to use this class which can be seen HERE
Hope this helps.

Following a html link from an iphone app

I have a couple of html links attached to buttons in my app.
I'm just wondering whats the best practice for following a html link in an iphone app.
I'm not sure if the app should exit and open safari or if a web container should be used etc.
There's no real best practice, it's whatever you think your users would appreciate. Some apps offer the best of both worlds, by putting a UIWebView in their app to view web content and then a button to open the same page in Safari.