Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Simple iPhone App (iOS7) Getting Started Create a String

Steven Katz
Steven Katz
1,892 Points

NSString

Challenge: Create a NSString variable named 'myString' with the value 'Fun with Objective-C'.

Answer put: NSString *mystring = @"Fun with Objective-C";

it is saying there is an error, possibly syntax. I don't see it.

4 Answers

Adam Moore
Adam Moore
21,956 Points

You need to have *mystring capitalizing the "S", like *myString.

Steven Katz
Steven Katz
1,892 Points

Wow, thanks for the help!

Adam Moore
Adam Moore
21,956 Points

No problem! Glad I could help!

Steven Katz
Steven Katz
1,892 Points

Hey Adam, I have another problem. can you help?

Q: We are back to working on the random quotes app and have created a button property called showQuote. We need to place this button towards the bottom of the screen. Assign the following coordinates to showQuote button: X: 100, Y: 250, Width: 280, Height: 44

Adam Moore
Adam Moore
21,956 Points

I was only able to answer your question because I learned a little bit of Objective-C and iOS programming a while ago, and when I saw the title of "NSString" in the forum, I thought I might check it out because that looked familiar to me; however, Objective-C and iOS programming are not currently fresh in my mind. Plus, the main reason I was able to help is because I saw that the code challenge instructions told you to use a capital letter when you hadn't used one, so I did the challenge and saw that the capital letter passed.

However, I found this forum post that may be able to answer your question: showQuote problem answered