Objective-C Naming UILabel iOS

I have been wondering for quite a long time what to do with this.

Suppose I will be creating an UILabel, this label will contain a name. So without giving it much of thought, I will name this UILabel |name|.

Then I will have an NSString which will hold the actual string of the name. So I think naming the string |name| would be more appropriate right?

But what would I name the UILabel then?

I thought about naming it labelName.

But this is hungarian notation which is highly discouraged?

This is a dead end?


Objective-C is a verbose language. It's common to include the type of variables and parameters when naming them.

UILabel *nameLabel = ...
NSString *name = ...

In case of primitive values (or even NSStrings and NSNumbers) usually the type is omitted.

Need Your Help

declaring a derived class in an IF for use outside

c++ class scope derived-class base-class

I have the following code where I want to declare an object inside an IF statement. I understand that just declaring it inside an IF means that it's outside the scope of the rest of the program. So I

Loop until a specific user input

python loops numbers

I am trying to write a number guessing program as follows:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.