Adversity makes people grow up

Thursday, October 30, 2014

[iOS] Create NSArray for non-object data types

Example: MKMapPoint *points; points = malloc(2 * sizeof(MKMapPoint)); points[0] = MKMapPointForCoordinate(CLLocationCoordinate2DMake(0, 1)); points[1] = MKMapPointForCoordinate(CLLocationCoordinate2DMake(1, 1)); .... free(points);
Posted by Peter at 3:14 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

About Me

Peter
View my complete profile

Blog Archive

  • ►  2019 (14)
    • ►  October (2)
    • ►  May (2)
    • ►  April (10)
  • ►  2018 (2)
    • ►  November (1)
    • ►  October (1)
  • ►  2017 (5)
    • ►  September (1)
    • ►  July (1)
    • ►  June (1)
    • ►  May (1)
    • ►  January (1)
  • ►  2016 (17)
    • ►  October (1)
    • ►  June (2)
    • ►  May (3)
    • ►  April (6)
    • ►  March (1)
    • ►  February (4)
  • ►  2015 (2)
    • ►  May (1)
    • ►  April (1)
  • ▼  2014 (13)
    • ►  November (2)
    • ▼  October (1)
      • [iOS] Create NSArray for non-object data types
    • ►  August (3)
    • ►  July (2)
    • ►  June (4)
    • ►  May (1)
Simple theme. Powered by Blogger.