All pastes #837120 Raw Edit

Anonymous

public text v1 · immutable
#837120 ·published 2007-12-29 09:49 UTC
rendered paste body
	UIPreferencesTable* table = [[UIPreferencesTable alloc] initWithFrame: CGRectMake(0.0f, 40.0f, rect.size.width, rect.size.height - 40.0f)];
	/*[table setKeyboardVisible: YES animated: NO]; causes the keyboard to not show up at all */
	NSLog(@"x %f y %f width %f height %f", rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
	
	[table setDataSource: self];
	[table setDelegate: self];

	pinCode0 = [[UIPreferencesTextTableCell alloc] init];
	[pinCode0 setTitle:@""];
	[pinCode0 setPlaceHolderValue:@"4"];
	[[pinCode0 textField] setReturnKeyType: 4];
	[[pinCode0 textField] setAutoEnablesReturnKey: YES];
	[[pinCode0 textField] setPreferredKeyboardType: 6];
	[pinCode0 setTarget: self];

	pinCode1 = [[UIPreferencesTextTableCell alloc] init];
	[pinCode1 setTitle:@""];
	[pinCode1 setPlaceHolderValue:@"4"];
	[[pinCode1 textField] setReturnKeyType: 4];
	[[pinCode1 textField] setAutoEnablesReturnKey: YES];
	[[pinCode1 textField] setPreferredKeyboardType: 6];
	[pinCode1 setTarget: self];

	pinCode2 = [[UIPreferencesTextTableCell alloc] init];
	[pinCode2 setTitle:@""];
	[pinCode2 setPlaceHolderValue:@"4"];
	[[pinCode2 textField] setReturnKeyType: 4];
	[[pinCode2 textField] setAutoEnablesReturnKey: YES];
	[[pinCode2 textField] setPreferredKeyboardType: 6];
	[pinCode2 setTarget: self];

	pinCode3 = [[UIPreferencesTextTableCell alloc] init];
	[pinCode3 setTitle:@""];
	[pinCode3 setPlaceHolderValue:@"4"];
	[[pinCode3 textField] setReturnKeyType: 4];
	[[pinCode3 textField] setAutoEnablesReturnKey: YES];
	[[pinCode3 textField] setPreferredKeyboardType: 6];
	[pinCode3 setTarget: self];

	[table addTableColumn: pinCode0];
	[table addTableColumn: pinCode1];
	[table addTableColumn: pinCode2];
	[table addTableColumn: pinCode3];