Quote:
Originally Posted by csnplt
How were they able to tell that your code used a private API? You can do that with only public APIs, so how would they know that your app is not using those? Are they tearing apart our submitted apps' binaries, looking for such things?
Here's how you can do that with public apis:
Code:
UIAlertView *myAlertView = [[UIAlertView alloc] initWithTitle:@"Enter your zip code:" message:@"this gets covered by text field" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Search", nil];
UITextField *myTextField = [[UITextField alloc] init];
//[myTextField setBackgroundColor:[UIColor whiteColor]];
myTextField.delegate = self;
myTextField.opaque = YES;
myTextField.borderStyle = UITextBorderStyleRoundedRect;
myTextField.frame = CGRectMake(100, 45, 80, 25.0); //make this bigger if need be. I needed it small
myTextField.textAlignment = UITextAlignmentCenter;
myTextField.keyboardType = UIKeyboardTypeNumberPad; //change keyboard type, too
myTextField.returnKeyType = UIReturnKeyDone;
[myTextField becomeFirstResponder];
[myAlertView addSubview:myTextField];
[myTextField release];
CGAffineTransform myTransform = CGAffineTransformMakeTranslation(0.0, 130.0);
[myAlertView setTransform:myTransform];
[myAlertView show];
[myAlertView release];
|
Where have you been for the last month. Yes, they are analysing the binaries we submit for private APIs, not something that is particularly complicated to do.