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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -