Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6823039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:44:06+00:00 2026-05-26T21:44:06+00:00

Ok so I am trying to integrate twitter into my iPhone app. I have

  • 0

Ok so I am trying to integrate twitter into my iPhone app. I have a UIWebView, and when the user presses the tweet button, I would like the current url to be prefilled into a tweet using the twitter addURL method. The problem is that the current url is formatted for mobile devices, and I would like tweets to show the full version of the website. All of the tweets would link to the same domain, so here are the link formats that I am dealing with.

Mobile URL: http://www.website.com/mobile/news/123456

Fullsite URL: http://www.website.com/podium/default.aspx?t=204&nid=123456

What I have done so far (just showing part of the twitter integration code):

  [twitter addURL:[NSURL URLWithString:[NSString stringWithFormat:@"www.website.com/podium/default.aspx?t=204&nid="]]];

So my question is, is there a way to take the identifying numbers from the mobile site and append them onto the fullsite that will be included in the tweet? I just don’t know much about parsing url’s (if that is what needs to be done in this situation) so any help is appreciated. Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:44:06+00:00Added an answer on May 26, 2026 at 9:44 pm

    You are very close. Because you are using stringWithFormat you just need to add a format string to your argument. Let’s say that you have the id as an int variable called theID:

    int myID = 123456;
    [twitter addURL:[NSURL URLWithString:[NSString stringWithFormat:@”www.website.com/podium/default.aspx?t=204&nid=%i”, myID]]];

    I suggest taking a look at the String Programming Guide for clarification.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to integrate twitter into an iOS app using Ben Gottlieb's Twitter-OAuth-iPhone
I am trying to integrate Facebook into my app and have already implemented MGTwitterEngine
I am trying to integrate twitter bootstrap into my app. However I noticed the
I am trying to integrate twitter framework into my app to give the users
I'm trying to integrate Twitter with my App right now. I have successfully set
I'm trying to integrate JQM with Facebook Like and Twitter Tweet on my second
Hi I'm trying to integrate an LDAP search functionality into my app similar to
In my app, i am trying to integrate posting messages to twitter. (I've generated
I am trying to integrate the TestFlight iOS SDK into my Forge app. Can't
I'm trying to integrate dropbox into my BB Playbook app using adobe air in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.