이 xib를 종료하고 돌아갈 때마다 중복 셀을 가져오고 있습니다.vc/xib를 다시로드 할 때 셀을 두 배로 늘림
쌀과 설탕이라는 두 가지 성분을 더할 수 있습니다. 나가서 돌아 오면, 나는 재료의 두 배가됩니다. 이것은이 컨트롤러를로드 할 때마다 발생합니다.
나는이 결함이있는 코드라고 생각합니다 :
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:YES];
//fixed doubling up of ingredients by addingn else before the other if and corresponding bracket Nov 13 falcon
if (self.groceryList) {
self.arrIngredients = [((MealIdeaAppDelegate*)MI_SHARED_DELEGATE).dbCommunicator getMyGroceryListIngredients:self.groceryList.groceryListID];
NSLog(@"data %@ ",self.groceryList.groceryListID);
self.title = self.groceryList.groceryListName;
txtfListName.text = self.groceryList.groceryListName;
//Added else Nov 13 falcon
}else if ([self.groceryList.groceryListName caseInsensitiveCompare:kDeafaultGroceryListName] == 0) {
[txtfListName setUserInteractionEnabled:NO];
}
[tblvGroceryListDetail reloadData];
}
이미지 추가 plz. ??? – Omarj