Hey
i have a problem :-(
i have a simple tableView based app, i´m using core-data in my project.
i pub. the cell with a "name" and a number at subtitle, and i have made a button in the cell. the plan is that when the user push the button it will add the number from the "subtitle" to a NSNumber in my core data model, and if the value >= to X then it need to open a view.
i have don this, but nothing happens :-(
hope u can help me out.
Skov
i have a problem :-(
i have a simple tableView based app, i´m using core-data in my project.
i pub. the cell with a "name" and a number at subtitle, and i have made a button in the cell. the plan is that when the user push the button it will add the number from the "subtitle" to a NSNumber in my core data model, and if the value >= to X then it need to open a view.
i have don this, but nothing happens :-(
Code:
ToDo *toDo;
int a = [toDo.pointsValue floatValue];
int b = [toDo.totalPoint floatValue];
int c = a + b;
toDo.totalPoint = [NSNumber numberWithInteger:c];
if ([toDo.totalPoint floatValue] > [toDo.goodiesPoints floatValue]){
CustomPickerViewController *addToDoView = [[CustomPickerViewController alloc] initWithNibName:@"CustomPickerViewController" bundle:[NSBundle mainBundle]];
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController: addToDoView];
[self.navigationController presentModalViewController:navController animated:YES];
hope u can help me out.
Skov
Last edited by a moderator: