Ok so I have this code
NSMutableArray *smartThings = [[NSMutableArray alloc] initWithCapacity:3];
NSMutableString *smartString = [NSString alloc];
int random;
int numOfThings = 1;
random = arc4random() % numOfThings;
smartString = [smartThings objectAtIndex:random];
UIAlertView *smartAlert = [[UIAlertView alloc] initWithTitle:@"Thing To Say" message:smartString delegate:self cancelButtonTitle:@"Thanks" otherButtonTitles:nil];
[smartAlert show];
[smartAlert release];
[smartThings release];
What it 'should' do is create a UIAlertView out of a string, and that string is created from an array of strings.
When I run it and press the button to call this code the program crashes. Please help
And yes i did hook up all the connections in IB.