hello i have an array that features data in an array of arrays. its like the items in format root array rootArray = [[NSArray alloc] initWithObjects:@"1", @"2", nil];
i want to knw what action to give a uibutton in order to be able to change a boolean value to is_favorite for that cell and make it show in the favorite table.
so i want to have an -(IBAction) makefavorite
//i have no idea how to implement this however to make the selected detailview controller and also its previus cell that was selected load in the favorites table.
furthermore i heard of using the is_favorite boolean to make items appear in a favorite view however i heard that only applies to databases.
hope im more clear now
thanks
translation attempt:
Hello, I have an array of data and I show the user some object out of that array in a "detailed view" so to speak. Once the view shows some object in that array to the user, I want the user to have the option of saving that object to their "Favorites" by clicking a UIButton. I would then like all of these "favorites" loaded into a UITableView with each item in the favorites array representing an individual table view cell. So possibly I could store all of these "favorite" items into a set of NSUserDefaults each time a button is pressed?
Could anyone elaborate more on how I could implement such a system? I am very new to this and my English is not very good. Thanks!