自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(51)
  • 收藏
  • 关注

原创 windows7下caffe安装

该文章记录了安装caffe,配置caffe的过程

2016-01-26 16:59:17 803 1

原创 Tegra(ubuntu)调用摄像头V4L2,并用YUV转RGB

在arm板子上装ubuntu调用摄像头。

2016-01-26 16:12:06 2939

原创 TegraK1(ubuntu)上添加QtCreator并运行OpenCv

主要写了一下在arm板子上安装qt和调用opencv的一些事

2016-01-26 15:36:16 903

原创 windows上 QtCreator调用OpenCv

解决部分windows上Qt调用OpenCv问题

2016-01-26 15:10:44 4011 1

原创 git安装和使用

git的基础安装和使用步骤

2014-05-09 11:06:49 898

原创 dismissModalViewControllerAnimated

如果A推出B,需要在A处使用 dismissModalViewControllerAnimated 方法。

2014-04-04 17:44:22 578

原创 iOS中CFUUIDRef,CFUUIDCreate声称唯一字符串

CFUUIDRef theUUID = CFUUIDCreate(NULL);   CFStringRef guid = CFUUIDCreateString(NULL, theUUID);   CFRelease(theUUID);   NSString *uuidString = [((NSString *)guid) stringByReplacingOccurrenc

2014-04-04 17:02:47 2719

原创 UIRefressController下拉刷新 刷新记录上次时间

新建的是继承自uirefreshcontroller类,具体代码如下 - (void)viewDidLoad {     [super viewDidLoad];     // Uncomment the following line to preserve selection between presentations.     // self.clear

2014-01-07 10:39:37 782

原创 UIBarButton,UINavigationItem,UINavigationBar,UIToolear区别

UINavigationController:管理UIView使用视图控制器 管理视图控制器 UINavigationController切换 push… pop… 以栈的形式管理UIViewController UIViewController切换 presentViewController /dissmiss.. UIViewController管理UIView:  ctl.view

2013-12-30 10:39:19 948

原创 UINavigateController到指定层数,退到指定层数

- (void)viewDidLoad {     [super viewDidLoad]; // Do any additional setup after loading the view.     self.navigationItem.titleView.frame = CGRectMake(120, 0, 80, 30);     self.title

2013-12-30 09:07:48 814

原创 导航控制器:UINavigationController

/*      导航控制器:UINavigationController 继承自UIViewController      视图控制器:UIViewController      UINavigationController:管理UIViewController      UIViewController:管理UIView      UINavigationCont

2013-12-29 21:36:43 710

原创 oc学习之旅:简单协议

#import #import "Boss.h" #import "Coder.h" int main(int argc, const char * argv[]) {     @autoreleasepool {                  /*          协议:本质就是一组接口          协议代理作用在:传参

2013-12-26 19:37:04 567

原创 oc学习之旅:数组浅拷贝深拷贝

//copy         NSString * str1 = @"wahaha";         NSString * str2 = [str1 copy];         NSString * str3 = [str1 retain];         NSLog(@"str1 %p str2 %p str4 %p",str1,str2,str3);  

2013-12-26 19:25:29 839

原创 oc学习之旅:KVO

#import #import "Bank.h" #import "Person.h" int main(int argc, const char * argv[]) {     @autoreleasepool {                  /*          KVC:义字符串替代访问器(getter setter)修改成员变量

2013-12-26 19:05:29 639

原创 KVC

#import #import "Person.h" #import "Group.h" int main(int argc, const char * argv[]) {     @autoreleasepool {        /*         KVC:Key Value Coding         */         Per

2013-12-26 18:58:31 586

原创 oc学习之旅:协议 银行转账

协议:TellREcevie.h  与 SendProtocol.h TellREcevie.h -(void)tellRecevie:(NSNumber *)money; SendProtocol.h -(void)sendMoney:(NSNumber *)money; 流程,userA转钱给银行,银行转钱给B,B收到钱了通知银行,银行通知A #

2013-12-26 18:37:20 682

原创 oc学习之旅:内存管理,文件操作流程

#import #import "Tail.h" #import "Cat.h" #define PATH @"XXXXXXXXXXXXXX" int main(int argc, const char * argv[]) {     @autoreleasepool {                  /*          NSFi

2013-12-26 17:54:21 674

原创 oc学习之旅:自动释放池

#import #import "Person.h" int main(int argc, const char * argv[]) {  //   NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];早期自动释放池     @autoreleasepool {         /*       

2013-12-26 17:49:26 595

原创 oc学习之旅:协议

构造一个士兵代理教官的开火的方法,并返回一个对话,教官有相应的对话,然后让士兵去执行。 main #import #import "Master.h" #import "Solider.h" int main(int argc, const char * argv[]) {     @autoreleasepool {           

2013-12-26 17:46:42 626

原创 UIView实现星级评定

准备两张五颗星的图片中,有一张是灰色的一张是黄色的星星,效果为点到一定区域就会显示半颗星和一个星变黄。在黄色星星上应该采用clipsToBounds来显示图片达到评分效果。每个星星的位置分为三段,第一段评分上一科星星的分数,第二段评分为半颗星的分数,第三段分为整颗星星的分数。运用逻辑运算来实现该分数。     UIImageView *imgView = [[UIImageView alloc

2013-12-26 17:30:18 1056

原创 停靠模式:子视图自适应父视图长度宽度左边距右边距上下边距

UIView *v = [[UIView alloc] initWithFrame:CGRectMake(0, 20, 200, 200)];     v.tag = 100;     v.backgroundColor = [UIColor orangeColor];     [self.window addSubview:v];     [v release];

2013-12-26 14:40:40 775

原创 UIView视图移动,抖动效果,定时器,动画block

for (int i = 0; i2; i++) {         UIImageView * img = [[UIImageView alloc] initWithFrame:CGRectMake(270*i, 20+410*i, 50, 50)];         if (i == 0) {             img.image = [UIImage imageN

2013-12-26 11:57:51 1054

原创 UIView-tag循环图片点击图片

//添加初始图片     UIImageView *imgView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 20, 250, 300)];     imgView.center = CGPointMake(160, 240);     imgView.image = [UIImage imageNamed:@"1.

2013-12-26 09:43:19 700

原创 UILabel仿qq对话

NSArray *arr = [[NSArray alloc] initWithObjects:@"我发现你越来越不爱我了,只爱你的工作!",@"我怎么不爱你了?",@"我明天不吃饭了,去把你经理打一顿!",@"为什么打我经理?",@"呜你果然不爱我了!你都不问我为什么不吃饭..", nil];     CGFloat>20;     UILabel * label;    

2013-12-25 19:37:02 749

原创 oc学习之旅:内存管理2修改数组为非ARC版本

为了重写数组的非arc版本,特意添加了一个Person类,把Person添加到自定义的数组类中,因为是强引用,所以添加完后把Person类释放掉,然后再把每个元素释放掉后会打印Person与自定义数组类的dealloc方法,顺序是先是调用Person的dealloc在调用自定义数组类的dealloc。每个功能都要实现内存管理,这样才不导致内存泄露 #import #import "P

2013-12-25 19:10:24 639

原创 UIView-tag

UIView *v =[[UIView alloc] initWithFrame:CGRectMake(10, 20, 320, 30)];     v.tag = 200;     v.backgroundColor = [UIColor blackColor];     [self.window addSubview:v];          [v relea

2013-12-25 17:50:22 729

原创 uiview子视图Center中心点2,层层叠加子视图,release与removeFromSuperview区别

/*      UIView:      坐标相关属性:frame 位置 大小 bounds (以自身为参考坐标 起始点 (0,0)) center中心点(相对于父视图而言)            UIView只能有一个父视图  可以有多个子视图            */     UIView *v =[[UIView alloc] initW

2013-12-25 17:45:00 1421

原创 UIView子视图Center中心点

/*      UIView:      坐标相关属性:frame(相对父视图而言)位置 大小 bounds(以自身为参考坐标 起始点(0,0))      center 中心点(相对父视图而言)            UIView只能有一个父视图 但可以有多个子视图      */     UIView * v = [[UIView alloc]

2013-12-25 17:31:53 1137

原创 UIView操作:插入添加置顶,判断一个视图是否为子视图view

for (int>0;>3; i++) {         UIView *v = [[UIView alloc] initWithFrame:CGRectMake(30*i, 30*i+50, 80, 80)];         v.backgroundColor =[[UIColor alloc] initWithRed:arc4random()%256/255.0 gr

2013-12-25 17:10:36 6529

原创 UIBUTTON添加图片点击-tag一个图片亮其他图片都灭

//给按钮设置图片     [b setImage:[UIImage imageNamed:@"unchecked.png"] forState:UIControlStateNormal];     [b addTarget:self action:@selector(click:) forControlEvents:UIControlEventTouchUpInside];

2013-12-25 17:08:33 750

原创 UIBUTTON电话界面

//7.0着色     //父视图着色改变 那么上面的所有的子视图着色都会改变     self.window.tintColor = [UIColor redColor];          //7.0无边框按钮     for (int i=0; i7 ;i++) {         UIButton *b =[UIButton buttonWithType

2013-12-24 16:57:39 583

原创 UIImageView

/*      UIImage    保存图片数据      UIImageView显示图片      */     //读取工程文件中得图片     //某一个张图片会被多次显示时优先使用     UIImage *img = [UIImage imageNamed:@"640*960.png"];     //图片仅仅显示一次又不想占用缓存空间 优先

2013-12-24 14:29:25 521

原创 UIBUTTON点击事件

#import "Person.h" @implementation AppDelegate - (void)dealloc {     [_arr release];     [self.window release];     [super dealloc]; } - (BOOL)application:(UIApplication *)applicati

2013-12-24 11:57:38 1162

原创 UIView显示对话

float curHeight =20;     //字体字典 修改字典     //ios7.0     NSDictionary *dic;     if (SYSTEMVERSION_7) {          UIFont *font =[UIFont systemFontOfSize:17];              dic =[NSDict

2013-12-24 10:37:27 531

原创 添加应用程序图文件

120代表5代以上 58代表3gs以下 80代表4代以下

2013-12-24 09:42:13 427

原创 UIBUTTON

UIButton *b =[UIButton buttonWithType:UIButtonTypeInfoLight];     b.frame =CGRectMake(50, 50, 50, 50);     [b addTarget:self action:@selector(click) forControlEvents:UIControlEventTouchUpIns

2013-12-24 09:24:27 440

原创 UIView给控件边框加阴影

UIView *v =[[UIView alloc] initWithFrame:CGRectMake(50, 50, 50, 50)];     v.backgroundColor = [UIColor blackColor];     v.layer.shadowOpacity = 0.8;     v.layer.shadowOffset =CGSizeMake

2013-12-24 09:06:04 883

原创 UI第2课UILable第3课自动换行

//7.0以前使用     //判断当前系统的软件版本     float f = [UIDevice currentDevice].systemVersion.floatValue;          if (f>=7.0) {         NSLog(@"使用7.0方法");     }else{         NSLog(@"使用7.0之前的方法")

2013-12-23 16:55:02 516

原创 UI第2课UILable

AppDelegate.m    /*      UILabel:      */     UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 20, 200, 50)];     //设置文字     label.text =@"wahaha";     label.backgro

2013-12-23 16:52:48 496

原创 UI第一课

main         /*          1.创建应用程序对象 UIApplication          2.创建应用程序代理 AppDelegate是UIApplication的代理          3.启动事件循环  runLoop         */         return UIApplicationMain(argc, argv,

2013-12-23 15:20:08 534

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除