title: (Objective-C) How to Call a Custom Method that Returns a String
body: <p>First of all, I'll tell you that I am an extreme beginner at Objective-C. So much so that I am asking a question here about an online tutorial on <b>CodeSchool.com</b> that I am currently following. I am doing fine in the tutorial, but I am also following along on Xcode Command Line Tool, writing my own versions of the topics in the tutorial.</p>
  
  <p>Something that I am having trouble with is calling a custom method that returns a string, such as NSString *. My header file, named Higgie.h is as follows:</p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  @interface Higgie : NSObject
  @property NSString *phoneName;
  @property NSString *modelNumber;
  -(void)speak;
  -(NSString *)speakTwo;
  @end
  </code></pre>
  
  <p>My implementation file, named Higgie.m, is as follows:</p>
  
  <pre><code>#import "Higgie.h"
  
  @implementation Higgie
  
  -(void)speak;
  {
  NSLog(@"%@ says Hello There!", self.phoneName);
  }
  -(NSString *) speakTwo; { 
  NSString *message = [NSString stringWithFormat:@"%@ says hello!", self.modelNumber];
  return message;
  }
  @end
  </code></pre>
  
  <p>My main.m sample is as follows: </p>
  
  <pre><code>Higgie *talkingiPhone = [[Higgie alloc]init];
      talkingiPhone.phoneName = @"iPhone 7";
      talkingiPhone.modelNumber = @"iOS 9";
      NSLog(@"I am an %@.", talkingiPhone.phoneName);
      Higgie *talkingAndroid = [[Higgie alloc]init];
      talkingAndroid.phoneName = @"Samsung S7";
      talkingAndroid.modelNumber = @"Android MacadamiaNutCookie";
      NSLog(@"Phone Name: %@", talkingAndroid.phoneName);
      NSLog(@"Model Number/OS: %@", talkingAndroid.modelNumber);
      [talkingiPhone speak];
      [talkingAndroid speak];
      NSLog(@"%@", [talkingiPhone message]);
  </code></pre>
  
  <p>In Higgie.m, I made a method called "SpeakTwo" which should return an NSString * variable called message. I have also tried just calling the NSString *message in the last line, but it does not work. <b>How do I display the string <i>message</i> in the console?</b></p>
  
  <p><b> Update: </b>
  Basically, I would like to do something like this: 
      [talkingiPhone speakTwo];
      NSLog(@"%@", message);
  This doesn't work, although I don't know why. I am pretty sure that speakTwo returns the string message, and then I should be able to log it to the console using NSLog.</p>