在.h文件中加上 UIViewController<UITableViewDelegate,UITableViewDataSource>//一个是代理,一个是数据源, 在viewDidLoad中初始化 tabView=[[UITableView alloc] initWithFrame:self.view...
去年学习过一段时间的ios开发 后来不知道为什么就没学了 最近准备重新开始学习ios开发 准备每天发一篇日志记录学习过程,也锻炼下自己的语言组织能力,代码写久了话不会说了 CGRect frame =...
使用 public void addFragmentToStack(int containerViewId, Fragment fragment) { if (mCurrentFragment != null) { getSupportFragmentManager().beginTransaction() .detach(mC...
chmod a+wrx service mysqld start yum -y install gcc automake autoconf libtool make htpasswd /source/svn/project/conf/webpasswd svnserve -d -r...
打开yum配置文件 vim /etc/yum.conf 找到 exclude=kernel* 改成 # exclude=kernel*
通过广播可以获取不过有几秒的延迟 通过读文件的方法可以是否得到 Thread thread = new Thread() { public void run() { while (true) { String HEADSET_STATE_PATH = "/sys/class...
//0为关闭 1为开启 Settings.System.putInt(getContentResolver(),Settings.System.ACCELEROMETER_ROTATION, 1); //得到是否开启 int flag = Settings.System.getInt(getContentResolver(), ...
UIAlertView *alert=[[[UIAlertView alloc] initWithTitle:@"title" message:@"message" delegate:self cancelButtonTitle:@"确定" otherButtonTitles:@"取消", nil] autorelease]; [alert ...
NSString *path = [[NSBundle mainBundle] pathForResource:documentName ofType:@"pdf"]; NSURL *url = [NSURL fileURLWithPath:path]; NSURLRequest *request = [NSURLRequest req...
AboutViewController *about=[[[AboutViewController alloc] initWithNibName:@"AboutViewController" bundle:nil] autorelease]; //设置页面跳转效果 about.modalTransitionStyle=U...
没有更多内容
加载失败,请刷新页面
文章删除后无法恢复,确定删除此文章吗?
动弹删除后,数据将无法恢复
评论删除后,数据将无法恢复