- Joined
- Sep 19, 2008
- Messages
- 302
- Reaction score
- 4
- Points
- 18
- Location
- Nottingham, UK
- Your Mac's Specs
- 20" iM ac,13.3" Aluminium Unibody Macbook, iPhone 4
I'm a long time PHP, C++ and Java Developer but have just started creating my first iPhone app. I'm picking up Objective-C quite quickly but I have a few questions. Alot of syntax seems to have @ signs in it. For example...
What is the @ sign for?
And there seems to be alternate ways of writing things for example this code does exactly the same as what I previously posted, whats the difference?
Thanks
Code:
myLabel.text = @"Hello, World!";
What is the @ sign for?
And there seems to be alternate ways of writing things for example this code does exactly the same as what I previously posted, whats the difference?
Code:
[myLabel setText:@"Hello, World!"];
Thanks