Skip to content

attempt to insert nil object from objects[0] #106

@ecnepsnai

Description

@ecnepsnai

In CMPopTipView.m at line 439:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
*** First throw call stack:
(0x184a402d8 0x1966b40e4 0x18492c9c8 0x18492c7f8 0x100141624 0x100117f30 0x185934180 0x1849f812c 0x1849f7ddc 0x1849f5828 0x1849212d4 0x18e37f6fc 0x18951ef40 0x10010e6c0 0x196d5ea08)
libc++abi.dylib: terminating with uncaught exception of type NSException

Using the following code:

CMPopTipView * tipView = [[CMPopTipView alloc] initWithMessage:@"Some tip that's a bit long but not crazy long"];
tipView.title = @"Tip:";
tipView.delegate = self;
tipView.backgroundColor = [UIColor lightGrayColor];
tipView.textColor = [UIColor darkTextColor];
tipView.has3DStyle = NO;
tipView.hasGradientBackground = NO;
UITableViewCell * cell = [self.tableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]];
[tipView presentPointingAtView:cell inView:self.view animated:YES];

iOS 8.4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions