On Apr 16, 2016, at 1:18 AM, Patrick J. Collins <[email protected]> 
wrote:
> 
> If I have:
> 
>  NSArray *arr = @[
>    @[@"lol", @"omg"],
>    @[@"rofl", @"copter"],
>    ...
>  ];
> 
> I want to be able to do:
> 
>  [arr valueForKey:@"lastObject"]
> 
> and get back:
> 
>  @[@"omg", @"copter"]
> 
> However, when I try this, I keep getting bad access saying that the
> object doesnt respond to lastObject... ?
> 
> What am I doing wrong?

Show real code and the verbatim error that you're getting.

Regards,
Ken


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/objc-language/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to