Trying to add two fields together

Discussion in 'iOS Programming' started by swanside, May 7, 2010.

  1. swanside macrumors newbie

    Joined:
    May 7, 2010
    #1
    Hello, Just found this forum as I have searched on how to add two fields together.
    I have followed a few guides on YouTube to make a hello WOrld for the Iphone, but what I would like to do is add two fields together. I have a project in mind, and so if I can work this out, I can expand it on my program. Can anybody point me in the right direction on what the fields need to be set at?
    Thankyou for anyt help, advice and pointers.
    Regards
    Paul.
     
  2. firewood macrumors 604

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #2
    Sounds like you need a basic book on C operators, C data types, and NSString methods.
     
  3. swanside thread starter macrumors newbie

    Joined:
    May 7, 2010
    #3
    Yeh, Like I say, I have no experience with this programming at all, but, MySQL and PHP I can find my way around, so I would need to know what the fields are. What do you recommend?
    Thanks
     
  4. cklongshot macrumors newbie

    Joined:
    May 15, 2010
    #4
    Are you looking to concatenate two strings?

    NSString *stringOne = @"hello ";
    NSString *stringTwo = @"world";
    NSString *stringThree = [stringOne stringByAppendingString: stringTwo];
     
  5. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #5
    I would recommend you step away from the real coding and go ahead and learn the basics of Objective-C and CocoaTouch.
     

Share This Page