上一页 1 ··· 4 5 6 7 8
摘要: CATransition *transition = [CATransition animation]; transition.duration = 1.0f;//间隔时间 transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];//动画的开始与结束的快慢 /* kCATransitionFade; kCATransitionMoveIn; kCATransitionPush; kCA... 阅读全文
posted @ 2011-10-18 10:39 Piosa 阅读(2735) 评论(0) 推荐(0) 编辑
摘要: 通常在创建完UITableViewController后,会看到UITableViewDataSource的一个实现函数如下- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = [NSString stringWithFormat:@"Cell"]; UITableViewCell *cell = [tableView dequeueReusableCe 阅读全文
posted @ 2011-10-15 10:03 Piosa 阅读(27797) 评论(5) 推荐(3) 编辑
摘要: 在委托UIAlertViewDelegate中实现如下方法- (void)willPresentAlertView:(UIAlertView *)alertView { alertView.frame = CGRectMake( 110, 190, 100, 100 );}即可 阅读全文
posted @ 2011-10-12 18:22 Piosa 阅读(3431) 评论(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 阅读(1817) 评论(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 阅读(1141) 评论(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 阅读(3432) 评论(0) 推荐(0) 编辑
摘要: cell.accessoryType = UITableViewCellAccessoryNone;cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;cell.accessoryType = UITableViewCellAccessoryCheckmark;决定了cell右边按钮的形状 阅读全文
posted @ 2011-10-11 10:19 Piosa 阅读(489) 评论(2) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8