Featured post
cocoa - Nesting arrays into NSDictionary object (Objective-C) -
i define tasks using nsdictionary, i'd save in plist file (i didn't have luck core data far), got stuck @ 2 points:
-- when using initwithobjectsandkeys:
can change data type number or boolean, using nsdate's numberwithint:
, numberwithbool:
methods, respectively. can't seem find method change type date though. couldn't find in documentation.
-- second problem ran nested arrays. how can add them dictionary?
i have uploaded picture here of trying achieve. thank in advance!
do mean nsnumber
's +numberwithint:
, +numberwithbool:
methods, not nsdate
? it's nsnumber defines methods.
to convert number date, depends on number is. if it's unix timestamp, [nsdate datewithtimeintervalsince1970:thetimestampinseconds]
.
as adding nsarray
objects dictionary:
[yourdictionary setobject:yourarray forkey:@"somekey"];
you'll have post code if need more question isn't clear.
- Get link
- Other Apps
Comments
Post a Comment