Home OFC Tech (blog) C# equivalents in Objective C

C# equivalents in Objective C

E-mail Print

Okay, so I've got a free moment, and I've decided to bless the interwebs with a little bit of my wisdom.  Basically I'm going to use this post as a little bit of a living document to highlight the Objective C equivalents of some basic and not so basic C# statements. I'll start out with the super easy stuff for those extra challenged programmers out there.

 

Basic String Concatenation
C# Objective C
string headerDescription;
string header = "We makin apps ";
string description = "up in here";

headerDescription = header + description;

lblHeader.text = headerDescription

NSString *headerText = @"Yea... all kind of apps being developed";
NSString *description = @". in Obj C";
NSMutableString *headerDescription = [NSMutableString string];

 

// Concatenate strings
[headerDescription appendString:headerText];
[headerDescription appendString:description];

 

 

lblHeader.text = headerDescription;

blog comments powered by Disqus
Last Updated ( Wednesday, 03 October 2012 03:19 )  

ID Card Printing

WorkForce ID cards are custom designed to reflect you unique business, brand or identity. Click to view our product brochure

WorkForceID_Marketing_v1.11

We also have specific offerings tailored to small businesses and individual entrepreneurs.


Certifications

Oracle Partner Logo

MS Partner Logo

Our Partners

The Gravely Group
INCREASE CDC
ECDI - Columbus
DMW Computers

Our Products

Sample imageNeighborhood Shield Drive
WorkForce ID
My Property Tag

Our Services

Application Development
Website Design
Flash Multimedia Design
Ecommerce & Storefronts
Card Printing & Plastics