I'm using the sample code from
iPhone: Number Pad with a decimal point (OS 3.0, OS 4.0) using public API devedup.com to add a decimal point to the number pad. I'm using a UITabBarController with 3 views, and it works fine, but only on the third (last) view. I'm guessing it has something to do with...
Code:
- (void) addButtonToKeyboard:(DecimalPointButton *)button {
//Add a button to the top, above all windows
NSArray *allWindows = [[UIApplication sharedApplication] windows];
int topWindow = [allWindows count] - 1;
UIWindow *keyboardWindow = [allWindows objectAtIndex:topWindow];
[keyboardWindow addSubview:button];
}
Has anyone used this code to add a decimal point to views in UITabBarController?