2012年3月1日 星期四

iPhone/iPod Touch: Icon.png: icon dimensions (72 x 72) don't meet the size requirements. The icon file must be 57x57 pixels, in .png format

iPhone/iPod Touch: Icon.png: icon dimensions (72 x 72) don't meet the size requirements. The icon file must be 57x57 pixels, in .png format

Edit Project Settings -> Build -> uncheck Compress PNG Files,就可以了

2012年1月31日 星期二

取得keyboard 座標和寬高(CGRect)

- (void) keyboardWillShow:(NSNotification*) notification
{
    NSDictionary* info = [notification userInfo];
    NSValue* aValue = [info objectForKey:UIKeyboardFrameEndUserInfoKey];
    CGRect keyboardRect = [aValue CGRectValue];
    NSLog(@"keyboardRect y:%f height:%f", keyboardRect.origin.y, keyboardRect.size.height);
}