64-bit processor support

This commit is contained in:
Roman Efimov
2013-09-11 09:41:47 -05:00
parent f28542a2db
commit 6e27b4dfa0
7 changed files with 672 additions and 1626 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -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";

View File

@@ -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
//

View File

@@ -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);
};

View File

@@ -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];
}

View File

@@ -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) {