mirror of
https://github.com/zhigang1992/RETableViewManager.git
synced 2026-05-10 13:50:36 +08:00
64-bit processor support
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -695,6 +695,7 @@
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = E4370D63D1564228A75E7BD2 /* Pods.xcconfig */;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "RETableViewManagerExample/RETableViewManagerExample-Prefix.pch";
|
||||
INFOPLIST_FILE = "RETableViewManagerExample/RETableViewManagerExample-Info.plist";
|
||||
@@ -709,6 +710,7 @@
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = E4370D63D1564228A75E7BD2 /* Pods.xcconfig */;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "RETableViewManagerExample/RETableViewManagerExample-Prefix.pch";
|
||||
INFOPLIST_FILE = "RETableViewManagerExample/RETableViewManagerExample-Info.plist";
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
//
|
||||
NSMutableArray *options = [[NSMutableArray alloc] init];
|
||||
for (NSInteger i = 1; i < 40; i++)
|
||||
[options addObject:[NSString stringWithFormat:@"Option %i", i]];
|
||||
[options addObject:[NSString stringWithFormat:@"Option %li", i]];
|
||||
|
||||
// Present options controller
|
||||
//
|
||||
@@ -132,7 +132,7 @@
|
||||
//
|
||||
NSMutableArray *options = [[NSMutableArray alloc] init];
|
||||
for (NSInteger i = 1; i < 40; i++)
|
||||
[options addObject:[NSString stringWithFormat:@"Option %i", i]];
|
||||
[options addObject:[NSString stringWithFormat:@"Option %li", i]];
|
||||
|
||||
// Present options controller
|
||||
//
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
[self.manager addSection:section];
|
||||
|
||||
for (NSInteger i = 1; i <= 5; i++) {
|
||||
RETableViewItem *item = [RETableViewItem itemWithTitle:[NSString stringWithFormat:@"Section 1, Item %i", i] accessoryType:UITableViewCellAccessoryNone selectionHandler:nil];
|
||||
RETableViewItem *item = [RETableViewItem itemWithTitle:[NSString stringWithFormat:@"Section 1, Item %li", i] accessoryType:UITableViewCellAccessoryNone selectionHandler:nil];
|
||||
item.editingStyle = UITableViewCellEditingStyleDelete;
|
||||
item.deletionHandler = ^(RETableViewItem *item) {
|
||||
NSLog(@"Item removed: %@", item.title);
|
||||
@@ -56,7 +56,7 @@
|
||||
[self.manager addSection:section];
|
||||
|
||||
for (NSInteger i = 1; i <= 5; i++) {
|
||||
RETableViewItem *item = [RETableViewItem itemWithTitle:[NSString stringWithFormat:@"Section 2, Item %i", i] accessoryType:UITableViewCellAccessoryNone selectionHandler:nil];
|
||||
RETableViewItem *item = [RETableViewItem itemWithTitle:[NSString stringWithFormat:@"Section 2, Item %li", i] accessoryType:UITableViewCellAccessoryNone selectionHandler:nil];
|
||||
item.editingStyle = UITableViewCellEditingStyleDelete;
|
||||
item.deletionHandlerWithCompletion = ^(RETableViewItem *item, void (^completion)(void)) {
|
||||
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Confirmation" message:[NSString stringWithFormat:@"Are you sure you want to delete %@", item.title] delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Delete", nil];
|
||||
@@ -76,12 +76,12 @@
|
||||
[self.manager addSection:section];
|
||||
|
||||
for (NSInteger i = 1; i <= 5; i++) {
|
||||
RETableViewItem *item = [RETableViewItem itemWithTitle:[NSString stringWithFormat:@"Section 3, Item %i", i] accessoryType:UITableViewCellAccessoryNone selectionHandler:nil];
|
||||
RETableViewItem *item = [RETableViewItem itemWithTitle:[NSString stringWithFormat:@"Section 3, Item %li", i] accessoryType:UITableViewCellAccessoryNone selectionHandler:nil];
|
||||
item.moveHandler = ^BOOL(id item, NSIndexPath *sourceIndexPath, NSIndexPath *destinationIndexPath) {
|
||||
return YES;
|
||||
};
|
||||
item.moveCompletionHandler = ^(RETableViewItem *item, NSIndexPath *sourceIndexPath, NSIndexPath *destinationIndexPath) {
|
||||
NSLog(@"Moved item: %@ from [%i,%i] to [%i,%i]", item.title, sourceIndexPath.section, sourceIndexPath.row, destinationIndexPath.section, destinationIndexPath.row);
|
||||
NSLog(@"Moved item: %@ from [%li,%li] to [%li,%li]", item.title, sourceIndexPath.section, sourceIndexPath.row, destinationIndexPath.section, destinationIndexPath.row);
|
||||
};
|
||||
[section addItem:item];
|
||||
}
|
||||
@@ -92,13 +92,13 @@
|
||||
[self.manager addSection:section];
|
||||
|
||||
for (NSInteger i = 1; i <= 5; i++) {
|
||||
RETableViewItem *item = [RETableViewItem itemWithTitle:[NSString stringWithFormat:@"Section 4, Item %i", i] accessoryType:UITableViewCellAccessoryNone selectionHandler:nil];
|
||||
RETableViewItem *item = [RETableViewItem itemWithTitle:[NSString stringWithFormat:@"Section 4, Item %li", i] accessoryType:UITableViewCellAccessoryNone selectionHandler:nil];
|
||||
item.editingStyle = UITableViewCellEditingStyleDelete;
|
||||
item.moveHandler = ^BOOL(id item, NSIndexPath *sourceIndexPath, NSIndexPath *destinationIndexPath) {
|
||||
return YES;
|
||||
};
|
||||
item.moveCompletionHandler = ^(RETableViewItem *item, NSIndexPath *sourceIndexPath, NSIndexPath *destinationIndexPath) {
|
||||
NSLog(@"Moved item: %@ from [%i,%i] to [%i,%i]", item.title, sourceIndexPath.section, sourceIndexPath.row, destinationIndexPath.section, destinationIndexPath.row);
|
||||
NSLog(@"Moved item: %@ from [%li,%li] to [%li,%li]", item.title, sourceIndexPath.section, sourceIndexPath.row, destinationIndexPath.section, destinationIndexPath.row);
|
||||
};
|
||||
[section addItem:item];
|
||||
}
|
||||
@@ -109,7 +109,7 @@
|
||||
[self.manager addSection:section];
|
||||
|
||||
for (NSInteger i = 1; i <= 5; i++) {
|
||||
RETableViewItem *item = [RETableViewItem itemWithTitle:[NSString stringWithFormat:@"Section 5, Item %i", i] accessoryType:UITableViewCellAccessoryNone selectionHandler:nil];
|
||||
RETableViewItem *item = [RETableViewItem itemWithTitle:[NSString stringWithFormat:@"Section 5, Item %li", i] accessoryType:UITableViewCellAccessoryNone selectionHandler:nil];
|
||||
item.moveHandler = ^BOOL(id item, NSIndexPath *sourceIndexPath, NSIndexPath *destinationIndexPath) {
|
||||
return (destinationIndexPath.section == section.index);
|
||||
};
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
// Add 5 items with name `section title + item index`
|
||||
//
|
||||
for (NSInteger i = 1; i <= 5; i++)
|
||||
[section addItem:[NSString stringWithFormat:@"%@%i", sectionTitle, i]];
|
||||
[section addItem:[NSString stringWithFormat:@"%@%li", sectionTitle, i]];
|
||||
|
||||
[self.manager addSection:section];
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
[self.manager addSection:section];
|
||||
|
||||
for (NSInteger i = 1; i < 100; i++) {
|
||||
NSString *title = [NSString stringWithFormat:@"Item %i", i];
|
||||
NSString *title = [NSString stringWithFormat:@"Item %li", i];
|
||||
XIBTestItem *item = [XIBTestItem itemWithTitle:title
|
||||
accessoryType:UITableViewCellAccessoryNone
|
||||
selectionHandler:^(RETableViewItem *item) {
|
||||
|
||||
Reference in New Issue
Block a user