String Comparison in the iPhone SDK

by Josh Highland on November 30, 2009

xcode String Comparison in the iPhone SDK
The wrong way to do string comparisons in the iPhone SDK

if(myTitle == @"HELLO")

The right way

if([myTilte isEqualToString:@"HELLO"])
  • digg String Comparison in the iPhone SDK
  • facebook String Comparison in the iPhone SDK
  • stumbleupon String Comparison in the iPhone SDK
  • twitter String Comparison in the iPhone SDK
  • delicious String Comparison in the iPhone SDK
  • reddit String Comparison in the iPhone SDK
  • friendfeed String Comparison in the iPhone SDK
  • posterous String Comparison in the iPhone SDK
  • tumblr String Comparison in the iPhone SDK

{ 1 comment… read it below or add one }

1 TechnoTalkative September 14, 2011 at 1:18 am

Hi,
As i am doing with my first Hello world application, later i tried to implement Login functionality, i was frustrated at username and password comparison, but i got this article and i am out of this problem.

thanx,

Leave a Comment

Previous post:

Next post: