2011年4月15日

iPhone 尺寸

摘要: ElementSize (in pixels)Window (including status bar)320 x 480pxStatus Bar(How to hide the status bar)20 pxView inside window(visible status bar)320 x 460Navigation Bar44 pxNav Bar Image /Toolbar Imageup to 20 x 20 px (transparent PNG)Tab Bar49 pxTab Bar Iconup to 30 x 30 px (transparent PNGs)Text Fi 阅读全文

posted @ 2011-04-15 17:33 GaryGaryGary 阅读(167) 评论(0) 推荐(0)

创建关联的UIPickerView 显示省市

摘要: 创建关联的UIPickerView 显示省市 iPhone 2010-03-28 12:42:57 阅读225 评论2 字号:大中小订阅 //// DependentComponentPickerViewController.m// Pickers//// Created by Jeff LaMarche on 7/7/08.// Copyright 2008 __MyCompanyName__. All... 阅读全文

posted @ 2011-04-15 17:18 GaryGaryGary 阅读(179) 评论(0) 推荐(0)

改UISwitch上的text

摘要: 改UISwitch上的text 为要更改Text的UISwitch建立IB连接:例如mySwitch,在代码中改变文字: ((UILabel *)[[[[[[self.mySwitch subviews] lastObject] subviews] objectAtIndex:2] subviews] objectAtIndex:0]).text = @"Foo"; ((UILabel *)[[[[[[self.mySwitch subviews] lastObject] subviews] objectAtIndex:2] subviews] objectAtIndex: 阅读全文

posted @ 2011-04-15 17:00 GaryGaryGary 阅读(162) 评论(0) 推荐(0)

iPhone常用code

摘要: iPhone常用code 一月 30, 2011 修改navigation bar的button样式:UIButton *BackBtn = [[UIButton alloc] initWithFrame:CGRectMake(0.0, 100.0, 62.0, 29.0)];[BackBtn setImage:[UIImage imageNamed:@"BackBtn.png"] forState:UIControlStateNormal];[BackBtn addTarget:self action:@selecto... 阅读全文

posted @ 2011-04-15 16:55 GaryGaryGary 阅读(195) 评论(0) 推荐(0)

导航