iphone - Objective C - NSDictionary giving error for CTParagraphStyleRef? -


ctparagraphstyleref parastyle = ctparagraphstylecreate(alignsettings, 1); nsdictionary *dictionary = [nsdictionary dictionarywithobject:parastyle forkey:kctparagraphstyleattributename]; 

i warning on second line of code "passing argument 2 incompatible pointer type " how can rid of warning?

parastyle no object, cant store one. try setvalue:forkey: on nsmuteabledictionary , valueforkey: retrieve it.

edit or wrap value in nsvalue object.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -