¡@

Home 

2014/10/15 ¤U¤È 10:12:13

iphone Programming Glossary: ns_block_assertions

What are assertions or NSAssert good for in practice?

http://stackoverflow.com/questions/1374474/what-are-assertions-or-nsassert-good-for-in-practice

keep in mind about NSAssert Xcode does not turn off NSAssert in Release mode by default. You have to remember to add NS_BLOCK_ASSERTIONS to GCC_PREPROCESSOR_DEFINITIONS in you xcconfig. You are using xcconfigs right A common issue is to assert non nil in cases..

NS_BLOCK_ASSERTIONS in Objective-C

http://stackoverflow.com/questions/6445222/ns-block-assertions-in-objective-c

in Objective C I am using NSAssert calls within an iPhone application and my understanding from the Apple docs is that.. an iPhone application and my understanding from the Apple docs is that assertions are not compiled into the code if NS_BLOCK_ASSERTIONS is defined. To turn off assertions in a header file I declare #define NS_BLOCK_ASSERTIONS However the assert code still.. compiled into the code if NS_BLOCK_ASSERTIONS is defined. To turn off assertions in a header file I declare #define NS_BLOCK_ASSERTIONS However the assert code still seems to run. Is there something I am missing here Thanks John iphone objective c xcode debugging..