Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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?

— asked April 15th 2010 by Stephen McCall
  • hyperlink
  • link
  • linking
  • media
  • school
  • social
0 Comments

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.

    — answered April 15th 2010 by Don Thorp
    permalink
    0 Comments
  • 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

    — answered April 15th 2010 by Mark Pierce
    permalink
    0 Comments
  • 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.

    — answered April 20th 2010 by Stephen McCall
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.