¡@

Home 

2014/10/15 ¤U¤È 10:09:19

iphone Programming Glossary: foundresult

SearchDisplayController search multiple arrays

http://stackoverflow.com/questions/8169889/searchdisplaycontroller-search-multiple-arrays

NSString searchString BOOL shouldReturn FALSE searchResults removeAllObjects for int i 0 i itemIDRows count i BOOL foundResult FALSE if itemIDRows objectAtIndex i rangeOfString searchString .location NSNotFound foundResult TRUE if nameRows objectAtIndex.. count i BOOL foundResult FALSE if itemIDRows objectAtIndex i rangeOfString searchString .location NSNotFound foundResult TRUE if nameRows objectAtIndex i rangeOfString searchString .location NSNotFound foundResult TRUE if barcodeRows objectAtIndex.. .location NSNotFound foundResult TRUE if nameRows objectAtIndex i rangeOfString searchString .location NSNotFound foundResult TRUE if barcodeRows objectAtIndex i rangeOfString searchString .location NSNotFound foundResult TRUE if aliasRows objectAtIndex..