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
Post a Comment