document.write('\n'); document.write('\n'); document.write('\n'); document.write('\n'); document.write('
| 1\n'); document.write('2\n'); document.write('3\n'); document.write('4\n'); document.write('5\n'); document.write('6\n'); document.write('7\n'); document.write('8\n'); document.write('9\n'); document.write('10\n'); document.write('11\n'); document.write('12\n'); document.write('13\n'); document.write('14\n'); document.write('15\n'); document.write('16\n'); document.write('17\n'); document.write('18\n'); document.write('19\n'); document.write('20\n'); document.write('21\n'); document.write('22\n'); document.write('23\n'); document.write('24\n'); document.write('25\n'); document.write('26\n'); document.write('27\n'); document.write('28\n'); document.write('29\n'); document.write('30\n'); document.write('31\n'); document.write('32\n'); document.write('33\n'); document.write('34\n'); document.write('35\n'); document.write('36\n'); document.write('37\n'); document.write('38\n'); document.write('39\n'); document.write('40\n'); document.write('41\n'); document.write('42\n'); document.write('43\n'); document.write('44\n'); document.write(' | \n'); document.write('// TapDetectingImageView.m\n'); document.write('// Code omitted, as this is provided as sample code via the iPhone Developer Portal and covered under the NDA.\n'); document.write('// You can find a copy of the class here: http://developer.apple.com/iphone/library/samplecode/ScrollViewSuite/listing15.html\n'); document.write('\n'); document.write('// TapDetectingTableView.m\n'); document.write('// EGOScrollView.m\n'); document.write('// Reworked the example code from Apple above, to work with UITableViews and UIScrollViews too\n'); document.write('- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {\n'); document.write(' [super touchesEnded:touches withEvent:event];\n'); document.write(' \n'); document.write(' UITouch* touch = [touches anyObject];\n'); document.write(' tapLocation = [touch locationInView:self];\n'); document.write(' \n'); document.write(' if([touch tapCount] == 1) {\n'); document.write(' [self performSelector:@selector(handleSingleTap) withObject:nil afterDelay:DOUBLE_TAP_DELAY];\n'); document.write(' } else if(touch.tapCount == 2) {\n'); document.write(' [(id<TapDetectingTableViewDelegate>)self.delegate tapDetectingTableViewGotDoubleTap:self];\n'); document.write(' }\n'); document.write('}\n'); document.write('\n'); document.write('// PostsTableViewController.m\n'); document.write('// ShuffleViewController.m (Same function in both classes)\n'); document.write('- (void)photoSelected:(EGOImageButton*)button event:(UIEvent*)event {\n'); document.write(' UITouch* touch = [[event allTouches] anyObject];\n'); document.write(' NSIndexPath* indexPath = [self.tableView indexPathForRowAtPoint:[touch locationInView:self.tableView]];\n'); document.write(' PhotosCell* cell = (PhotosCell*)[self.tableView cellForRowAtIndexPath:indexPath];\n'); document.write(' // Rest of the code omitted, not relevant since we only use the Touch to find the correct cell\n'); document.write('}\n'); document.write('\n'); document.write('// TCCommentsTableController.m\n'); document.write('// Same code is also used in the following methods:\n'); document.write('//\n'); document.write('// [TCCommentsTableController addReply:event:]\n'); document.write('// [TCCommentsTableController pushProfile:event:]\n'); document.write('// [TCCommentsTableController pushImage:event:]\n'); document.write('// [TCCommentsTableController pushReplies:event:]\n'); document.write('\n'); document.write('- (IBAction)pushReplies:(UIButton*)button event:(UIEvent*)event {\n'); document.write(' UITouch* touch = [[event allTouches] anyObject];\n'); document.write(' NSIndexPath* indexPath = [self.tableView indexPathForRowAtPoint:[touch locationInView:self.tableView]];\n'); document.write(' // Rest of the code omitted, not relevant since we only use the Touch to find the correct row\n'); document.write('}\n'); document.write('\n'); document.write(' | \n');
document.write('