-1

Possible Duplicate:
iOS compare button title to string

Can someone tell me how to compare UIlabel and a String @"abc".

lets say if(UIlabel??? == @"abc");

Community
  • 1
  • 1
user1669730
  • 65
  • 1
  • 8
  • 1
    possible duplicate of [iOS compare button title to string](http://stackoverflow.com/questions/5270260/ios-compare-button-title-to-string), [Check the text of a label](http://stackoverflow.com/questions/7547699/), [Compare the text of two fields](http://stackoverflow.com/questions/6905751/), and [plenty more](http://stackoverflow.com/search?q=%5Bobjc%5D+%22string%22+comparison). – jscs Oct 09 '12 at 01:52
  • Indeed...this question is one of the most frequently answered questions on SO – borrrden Oct 09 '12 at 02:42

1 Answers1

1
[myLabel.text isEqualToString:@"abc"]
Oscar Gomez
  • 18,436
  • 13
  • 85
  • 118