¡@

Home 

2014/10/15 ¤U¤È 10:06:52

iphone Programming Glossary: discards

iPhone inputting NSUserDefaults into a UITextField

http://stackoverflow.com/questions/2815194/iphone-inputting-nsuserdefaults-into-a-uitextfield

How to declare NSString constants for passing to NSNotificationCenter

http://stackoverflow.com/questions/2917941/how-to-declare-nsstring-constants-for-passing-to-nsnotificationcenter

self userInfo nil Which works but it gives me a warning Passing argument 1 of 'postNotificationName object userInfo' discards qualifiers from pointer target type So I can cast it to NSString but I'm wondering what the proper way to do this is. iphone..

How to convert an NSString to hex values

http://stackoverflow.com/questions/3056757/how-to-convert-an-nsstring-to-hex-values

Thanks to drawnonward's answer here's the method I wrote to create the hex NSStrings. It gives me an Initialization discards qualifiers from pointer target type warning on the char declaration line but it works. NSString stringToHex NSString string..

objc warning: “discard qualifiers from pointer target type”

http://stackoverflow.com/questions/329555/objc-warning-discard-qualifiers-from-pointer-target-type

this char str NSString stringWithFormat @ i days and i hours days hours UTF8String I get this warning initialization discards qualifiers from pointer target type How do I get rid of it iphone objective c cocoa share improve this question The..

how can I Add a ABRecordRef to a NSMutableArray in iPhone?

http://stackoverflow.com/questions/6071256/how-can-i-add-a-abrecordref-to-a-nsmutablearray-in-iphone

birthdayDate nil bContacts addObject ref The compiler shows this warning warning passing argument 1 of 'addObject ' discards qualifiers from pointer target type I searched the web and found I have to cast ABRecordRef to a ABRecord to be able to..

SFHFKeychainUtils. iOS keychain. ARC compatible

http://stackoverflow.com/questions/7663443/sfhfkeychainutils-ios-keychain-arc-compatible

from implicit conversions from obj c pointer to CFTypeRef is disallowed in ARC to passing x parameter to y parameter discards qualifiers . Obviously the first snip of code gives an error too. Although I get no errors when building app crashes with..