Wednesday, 15 August 2012

ios how to store time values in nsmutablearray and acessing objects from the array -


I am trying to store and access randomly the array in the form of an object but I get an error Here's my code:

  NSMutableArray * timer = [[NSMUTABELARROL] INST]; [Timer add object: [NSNumber Number Double Double: TimeOn]]; [Timer add object: [NSNL's number two repeat: time]]; Int time index = ARC 4 rrm ()% [timer count]; Double Timebuse = [NSNR Number Repeat Repeated: [Timer ObjectAutAutAuttex: Time Index]];   

On this line:

  Twoboy = = [NSNR Number Repeat Repeated: [Timer ObjectAntindex: Time Index]];   

I am getting this error: "Id is sending ID to the parameter of incompatible type 'double'

Any of you know how to fix it I would appreciate your help.

Change From that line:

  Twoboy = [[Timer object addindex: time index] double value];   

In its original version, you create a new one Trying to double Instead of making NSNumber with NSNumber.

No comments:

Post a Comment