objective c - Value comparison with NSString - Xcode -
i'm trying compare value 1 stored in nsstring, following error:
implicit conversion of int 'nsarray *' disallowed arc
here code:
nsstring *tmplabel = [tmpc description]; temp.text = [nsstring stringwithformat: @"%.f", [tmplabel doublevalue]]; if (tmpc >= 10) { // perform action } else { // perform action }
how can comparison? want see if value stored bigger or equal 10.
thanks time :)
Comments
Post a Comment