会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
 Sportica
 Sportica
qingjoin
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
15
16
17
18
19
20
21
22
23
···
26
下一页
2012年7月24日
Unix 下获得 root权限
摘要: 在终端输入 sudo -s然后就是一个提示软件密码,注意输入进去的密码是隐藏的完了之后就获得了root 权限。
阅读全文
posted @ 2012-07-24 14:09 qingjoin
阅读(2254)
评论(0)
推荐(0)
2012年7月19日
os x 一些常用命令
摘要: du -a //显示目录下所有文件、及大小du -sh //显示当前文件的大小重置管理员密码开机按住command+S,进入单用户模式执行/sbin/mount -uawrm /var/db/.AppleSetupDonereboot显示隐藏文件:defaults write com.apple....
阅读全文
posted @ 2012-07-19 10:34 qingjoin
阅读(223)
评论(0)
推荐(0)
2012年7月18日
objective-c 常用的一些控件。
摘要: /***********UIButton***************///新建button UIButtonTypeCustom为隐藏按键 UIButtonTypeRoundedRect 为显示 UIButton * testbutton = [UIButton buttonWithType:UIButtonTypeCustom];//设置button的文字显示 [testbutton setTitle:@"显示" forState:UIControlStateNormal];//为按键添加事件 [testbutton addTarget:self action:@sel
阅读全文
posted @ 2012-07-18 17:39 qingjoin
阅读(1547)
评论(0)
推荐(0)
UISlider 滑动条基本属性
摘要: UISlider *_uislider; //新建一个滑动条 UILabel *_uilabel; //新建一个label用来显示滑动的位置//滑动条-(void)testSlider{ NSLog(@"begin slider"); //设置滑动条slider的一些基本属性 _uislider = [[UISlider alloc]init]; _uislider.frame = CGRectMake(10, 365, 300, 50); //滑动条的位置,大小 _uislider.minimumValue = 0; //最小值 _uisli...
阅读全文
posted @ 2012-07-18 14:20 qingjoin
阅读(4684)
评论(0)
推荐(0)
2012年7月12日
objective-c NSTimer 定时器
摘要: -(void)initTimer{ //时间间隔 NSTimeInterval timeInterval =3.0 ; //定时器 repeats 表示是否需要重复,NO为只重复一次 NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval:timeInterval target:self selector:@selector(mobileAnimation) userInfo:nil repeats:YES];}
阅读全文
posted @ 2012-07-12 18:20 qingjoin
阅读(1951)
评论(0)
推荐(2)
objective-c Http xml 文件解压 解析。NSXMLParser
摘要: //// setting.h// TestNew//// Created by jlz on 12-6-29.// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.//#import <UIKit/UIKit.h>#import "ViewController.h"#import <zlib.h>typedef enum _testElement { one, two, three, four, }_testElement;@interface setting : UIViewCo
阅读全文
posted @ 2012-07-12 16:53 qingjoin
阅读(513)
评论(0)
推荐(0)
2012年7月10日
UIImageView 与 CABasicAnimation 实现多层视图,带动画效果objec iOS
摘要: - (void)viewDidLoad{ [super viewDidLoad]; int i; int n = 0; UIScrollView *newscrollview = [[UIScrollView alloc]init]; newscrollview.frame = CGRectMake(0, 0, 320, 400); [self.view addSubview:newscrollview]; newscrollview.backgroundColor = [UIColor brownColor]; ...
阅读全文
posted @ 2012-07-10 10:00 qingjoin
阅读(1666)
评论(0)
推荐(0)
2012年7月5日
objective-c 实现用户验证,登陆 Xcode iOS
摘要: - (void)viewDidLoad{ [super viewDidLoad]; //加载窗口的时候把从文件里读出用户名。 NSString *filePath = [self documentsPath:@"user.txt"]; //读出文件存到数组username中 NSArray *username = [NSArray arrayWithContentsOfFile:filePath]; self.TXF1.text = [username objectAtIndex:0]; self.Txtpwd.text = [username object...
阅读全文
posted @ 2012-07-05 16:41 qingjoin
阅读(5226)
评论(0)
推荐(0)
UIScrollView基本使用。为其它添加多个button ||-iOS objective-c
摘要: int i; int n = 0; //新建一个视图类对象并设置它的大小 UIScrollView *newview =[[UIScrollView alloc]init]; //依次为它的x y位置,长和宽 newview.frame =CGRectMake(0, 0, 300, 400); //把这个对象加到view中去。显示出来 [self.view addSubview:newview]; //添加10个Button for(i =0; i<10;i++) { //新建一个button对象 button还有一...
阅读全文
posted @ 2012-07-05 10:12 qingjoin
阅读(7823)
评论(0)
推荐(0)
2012年7月4日
obj-c iOS 数组存入程序文件 arrayWithContentsOfFile
摘要: -(void)writeFileArray{ int i; NSLog(@"writeFileArray\n"); //新建userinfomation数组用来存一些信息 NSArray *userinfomation = [NSArray arrayWithObjects:@"One",@"Two",@"Three",@"four",@"five",@"six",@"seven",@"name",@"sc
阅读全文
posted @ 2012-07-04 15:57 qingjoin
阅读(8458)
评论(0)
推荐(0)
上一页
1
···
15
16
17
18
19
20
21
22
23
···
26
下一页
公告
 Sportica