Trying to add two fields together

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

  1. swanside macrumors newbie

    May 7, 2010
    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.
  2. firewood macrumors 604

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

    May 7, 2010
    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?
  4. cklongshot macrumors newbie

    May 15, 2010
    Are you looking to concatenate two strings?

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


    Staff Member

    Sep 2, 2004
    The Centennial State
    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