Steps to reproduce the issue.
Launch the sample TableViewExample app.
Perform right to left on any TableView row. (Please refer "RightToLeftSwipe1.png")
Perform right to left on any other row. (Please refer "RightToLeftSwipe2.png")
Now Tap on Edit button on top-right.
Observer the result, one row is not in edit mode. (Please refer "EditScreen.png")
Expected Result:
All rows should be in edit mode
Actual Result:
One row is not in edit mode.
Source Code:
@interface ViewController ()
@property (strong, nonatomic) NSMutableArray *people;
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
self.people = [NSMutableArray arrayWithObjects:@"One", @"Two", @"Three", @"Four", @"Five", @"Six", @"Seven", @"Eight", @"Nine", @"Ten", nil];
self.peopleTableView.delegate = self;
self.peopleTableView.dataSource = self;
self.navigationItem.rightBarButtonItem = [self editButtonItem];
//self.navigationItem.leftBarButtonItem = [self ];
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return [self.people count];
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *cellIdentifier = @"cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
if(nil == cell) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier];
}
cell.textLabel.text = [self.people objectAtIndex:indexPath.row];
return cell;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
//
}
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
[self.people removeObjectAtIndex:indexPath.row];
[tableView deleteRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath, nil] withRowAnimation:UITableViewRowAnimationFade];
}
- (void)setEditing:(BOOL)editing animated:(BOOL)animated {
[super setEditing:editing animated:animated];
self.peopleTableView.editing = editing;
}
@end
ViewController.m
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
My application is currently crashing in production in iPhone devices running iOS 15.x. The app will work as normal while running developer mode, enterprise builds and Test Flight builds. Unfortunately, I am unable to reproduce the issue even app is downloaded from the app store. Can someone help me to fix this issue?
Please find the crash log details attached.
2022-03-04_17-59-47.7453_+0900-6308c1a502d413ccbd8042c19cc2fced108a41db.crash
We use CFWriteStreamCreateWithFTPURL for FTP print. We send file using FTP to printer to print the file.
But, CFWriteStreamCreateWithFTPURL is deprecated in iOS9.
Is there any replacement of CFWriteStreamCreateWithFTPURL to send file using FTP?
When “Don’t allow" (or any other option) is selected on the permission confirmation screen of location service, and no other permission (camera or photo library access permission) selection operation is performed. Application name will not appear on settings screen.
However, application is appearing in Settings -> Privacy -> Location Services
My application is currently crashing in production in iPad devices running iOS 15.x. The app will work as normal while running developer mode, enterprise builds and Test Flight builds. Unfortunately, I am unable to reproduce the issue even app is downloaded from the app store. Can someone help me to fix this issue?
Please find the crash log details attached.
2022-03-04_14-15-23.6227_+0900-a1899fd803a4ed683466702be71b9d224b4cd5bc.crash