concatenate two string

Discussion in 'iOS Programming' started by bobisa, Nov 9, 2010.

  1. bobisa macrumors newbie

    Joined:
    Nov 8, 2010
    #1
    i got the following code

    NSString *urlAddress = @"http://mysite.com/status.awp?P1=";

    and i want to the value of txt_number to the urlAddress

    how can i do that

    i know in c is
    urladdress = urladress + txt_number.text

    thanks
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Alright, seems you're not as far ahead as I hoped. So, I need to stress that you take my advice from my previous post to you in another thread (step back; learn the basics). What you're asking is fairly common and covered in most "intros" to Objective-C when they begin to cover string handling.

    Also, please make sure to search for previous threads on your concern before starting a new one. Here's a just a couple of existing threads on this topic:
    http://forums.macrumors.com/showthread.php?t=912585&highlight=concatenate
    http://forums.macrumors.com/showthread.php?t=637512&highlight=concatenate
     

Share This Page