iOS App Sharing
Share the programming experience in iOS application development.
Tuesday, December 6, 2011
Array with Integer
Below code loads integer into Array:
NSMutableArray *array
= [[
NSMutableArray
alloc
]
initWithCapacity
:
99
];
for
(
int
n =
0
; n <
99
; n++)
{
[a
rray
addObject
:[
NSNumber
numberWithInteger
:n]];
NSLog
(
@"%@"
, [a
rray
objectAtIndex
:n]);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment