摘要: 在委托UIAlertViewDelegate中实现如下方法- (void)willPresentAlertView:(UIAlertView *)alertView { alertView.frame = CGRectMake( 110, 190, 100, 100 );}即可 阅读全文
posted @ 2011-10-12 18:22 Piosa 阅读(3429) 评论(1) 推荐(0) 编辑
摘要: 为UINavigatonBar增加如下Category:@implementation UINavigationBar (CustomImage)- (void)drawRect:(CGRect)rect { UIImage *image = [UIImage imageNamed: @"NavigationBar.png"]; [image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];}@end如下实际代码://修改导航栏的图片@implementation UIN 阅读全文
posted @ 2011-10-12 15:11 Piosa 阅读(1815) 评论(0) 推荐(0) 编辑
摘要: lement元Size (in points)大小Window (including status bar)窗口(包括状态栏)320 x 480 ptsStatus Bar状态栏(How to hide the status bar)(如何隐藏状态栏)20 ptsView inside window查看里面的窗口(visible status bar)(可见状态栏)320 x 460Navigation Bar导航栏44 ptsNav Bar Image /导航栏图像/Toolbar Image工具栏的图像up to 20 x 20 pts (transparent PNG)高达20  阅读全文
posted @ 2011-10-12 13:46 Piosa 阅读(1140) 评论(0) 推荐(0) 编辑
摘要: UIWindow *keyWindow = [[UIApplication sharedApplication] keyWindow]; UIView *firstResponder = [keyWindow performSelector:@selector(firstResponder)]; [firstResponder resignFirstResponder]; 阅读全文
posted @ 2011-10-12 11:14 Piosa 阅读(1180) 评论(0) 推荐(0) 编辑
摘要: //无色cell.selectionStyle = UITableViewCellSelectionStyleNone;//蓝色cell.selectionStyle = UITableViewCellSelectionStyleBlue;//灰色cell.selectionStyle = UITableViewCellSelectionStyleGray;Cell Selection StyleThe style of selected cells.typedef enum { UITableViewCellSelectionStyleNone, UITableViewCellSel... 阅读全文
posted @ 2011-10-12 09:55 Piosa 阅读(3431) 评论(0) 推荐(0) 编辑