How do I make a link in an app?
I'm doing a school project where I have to build an iPhone app that links to various social media pages related to the school and allows people to navigate them. How do I code/create a link in Titanium?
3 Answers
-
You can put a WebView in your application and use standard HTML, you can use the API call
Titanium.Platform.openURL(url);
to launch a link in the external browser, or you can do a hybrid approach and create a WebView with the url but have is stored in a table view or some other UI element.Check out the KitchenSink example and you'll find lots of code to help.
-
Hi Stephen
Your question is a bit vague but I think the simplest solution would be to create a tableview.
I would look at the Kitchen sink app (Base UI > Table views > Table view (layout)). This will give you the flexibility to drill down to individual pages and add a bit of School branding :).
I think this would be a good starting point.
I would also look at the human interface guidelines from apple.
http://developer.apple.com/iphone/library/documentation/UserExperience/Conceptual/MobileHIG/Introduction/Introduction.html
This will allow you to justify your reasons for making your final decisions. Always good to support your decisions.
Hope this helps and good luck.
Don might be closer to the mark ;) hope i have not confused
-
Is there any other code needed in addition to the API call you mentioned Mr. Thorpe? I've used it and I keep getting errors, so I know the problem is on my end. I'm mainly taking some of the existing code from one of the examples/templates and altering it a bit.