Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you have an object of the class, it is only the information <strong>for one</strong> shop. The object describes one shop info. It is common use to write a class name that way, that it makes <strong>sense when using an object</strong>.</p> <p>Especially in method names and declaring variables it is clearer</p> <pre><code>// CORRECT WAY - (UIAlertView *)calcualteSomething:(UIView I)view { UIView *newView = view; ... return [UIAlertView alertWith...]; } </code></pre> <p>It would be very odd to use the plural form in my opinion (it seems like the single object is more than one!):</p> <pre><code>// BAD IDEA - (UIAlertViews *)calcualteSomething:(UIViews *)view { UIViews *newView = view; ... return [UIAlertViews alertWith...]; } </code></pre> <p>You can then easily use the object or test for the class and it makes sense too:</p> <pre><code>[myObject isKindOfClass:[NSString class]] </code></pre> <p>Here is the official link how you should write a name:</p> <p><a href="https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CodingGuidelines/Articles/NamingBasics.html#//apple_ref/doc/uid/20001281-BBCHBFAH" rel="nofollow">https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CodingGuidelines/Articles/NamingBasics.html#//apple_ref/doc/uid/20001281-BBCHBFAH</a></p> <p>And there you see, Apple always <strong>avoids using the plural</strong> form (NSString, NSArray, etc.).</p> <p><em>Of course the other way around it also makes sense, but then more for class methods etc. . Other popular languages also use singular form for classes.</em></p> <hr> <p>Some other good coding guidelines is from <em>CocoaDevCentral</em></p> <p><a href="http://cocoadevcentral.com/articles/000082.php" rel="nofollow">http://cocoadevcentral.com/articles/000082.php</a></p> <p><a href="http://cocoadevcentral.com/articles/000083.php" rel="nofollow">http://cocoadevcentral.com/articles/000083.php</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload