¡@

Home 

2014/10/15 ¤U¤È 10:14:11

iphone Programming Glossary: shoindex

How to check for null value in NSNumber

http://stackoverflow.com/questions/4231318/how-to-check-for-null-value-in-nsnumber

if there is one or null show_id null otherwise. In processing that field I assign it to an NSNumber using... NSNumber shoIndex item objectForKey typeKey objectForKey @ show_id I then try to check that I have a valid number before attempting to fetch.. to fetch link the related record so as to not do wasteful processing where there is no related record. Interrogating shoIndex with... NSLog @ shoIndex i @ @ shoIndex shoIndex shoIndex description Gives... shoIndex 19590600 null null where the JSON.. record so as to not do wasteful processing where there is no related record. Interrogating shoIndex with... NSLog @ shoIndex i @ @ shoIndex shoIndex shoIndex description Gives... shoIndex 19590600 null null where the JSON value was null ... shoIndex..