自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 资源 (3)
  • 收藏
  • 关注

原创 btn 添加长按手势

UIButton *btn = (UIButton *)gester.view;125

2014-06-16 20:14:21 539

原创 webview 乱码

NSURL *url =[NSURLURLWithString:urlString];    //        NSURLRequest *request = [NSURLRequest requestWithURL:url cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:30.0];//    [webView lo...

2014-04-11 15:46:37 548

原创 小问题

14/2/26 产品介绍右布局  计算lab高度,    UITextView * contentXXs_label=[[UITextView alloc] initWithFrame:frame];        contentXXs_label.font=[UIFont fontWithName:@"STFangsong" size:18.0f];

2014-02-26 16:41:41 495

原创 xcode 弹出 please tell me who you are

xcode git配置 如图提示 添加自己用户名和email  1.随便建立个项目  2 终端到项目目录下面 3 如上命令

2014-02-19 17:07:06 4046

原创 ios7上SegmentedControl 图片使用

在早期版本的iOS中,自定义栏上按钮图片会自动被当做“template image”。(template image被用作最终图像的一个遮罩。)而iOS 7中,你可以使用以下UIImage属性来指定是否需要把自定义的图片当做template image来处理: UIImageRenderingModeAlwaysTemplate。图片被用作Template Image。UIImageRend

2013-12-30 17:35:04 872

原创 iphone 开发 --。。。

判断是不是纯数字 - (BOOL)isPureInt:(NSString *)string{     NSScanner* scan = [NSScanner scannerWithString:string];     int val;     return [scan scanInt:&val] && [scan isAtEnd]; } 判断是否有空格    

2013-10-18 11:38:31 538

转载 iPhone 开发 nsarray

1.  makeObjectsPerformSelector:@select(aMethod) 简介:让数组中的每个元素 都调用 aMethod  2. makeObjectsPerformSelector:@select(aMethod)                      withObject:oneObject 简介:让数组中的每个元素 都调用 aMethod  并把 with

2013-10-18 11:35:16 602

转载 iPhone开发--iphone开发中,contentsize和contentoffset 还有contentInset的区别

contentSize是scrollview可以滚动的区域,比如frame = (0 ,0 ,320 ,480) contentSize = (320 ,960),代表你的scrollview可以上下滚动,滚动区域为frame大小的两倍。 contentOffset是scrollview当前显示区域顶点相对于frame顶点的偏移量,比如上个例子你拉到最下面,contentoffset就是(0

2013-10-18 11:32:45 537

转载 iPhone 开发问题

1. 编译器提示类似file is universal but does not contain a(n) armv6 slice for architecture armv6的错误。可能是您的XCode版本过低,推荐使用4.2以上的版本,将XCode的Build Settings中的Architectures设置成arm7。 2. XCode提示有类似C++语法的错误。可能是您在调用接口时没有

2013-10-18 11:30:42 949

原创 iphone 开发 网址--博客

http://www.lan27.com/article/200808/7893.htm   goole  http://www.open-open.com/lib/view/open1349782799838.html http://mobile.51cto.com/iphone-278633.htm  /端点 http://www.cnblogs.co

2013-10-18 11:30:01 613

原创 iPhone开发--问题 Not a PNG filCommand

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/copypng emitted errors but did not return a nonzero exit code to indicate failure ==>>>>>>Your Proj>>>

2013-10-18 11:26:50 613

转载 iPhone开发--scr

scrollview   * @param andshowsHorizontal 显示滚动条         * @param andshowsVertical 垂直滚动条         * @param andBounces 超过边界会有反弹效果  默认YES //只要滚动了就会触发 - (void)scrollViewDidScroll:(UIScr

2013-10-18 11:25:41 736

转载 关于UIView的autoresizingMask属性的研究

UIView中有个属性是autoresizingMask,该属性是用来控制控件的自适应。   UIViewAutoresizingNone                 = 0, UIViewAutoresizingFlexibleLeftMargin   = 1 UIViewAutoresizingFlexibleWidth        = 1 UIViewAutoresizi

2013-10-18 11:24:26 633

原创 iPhone开发--uitableview

设置tableview属性: _tableView.transform = CGAffineTransformMakeRotation(-M_PI / 2); 设置cell属性 cell.contentView.transform = CGAffineTransformMakeRotation(M_PI / 2);

2013-10-18 11:22:02 605

原创 iphone 开发 --问题

The file “project.xcworkspace” couldn’t be saved in the folder “KaMai1.xcodeproj” because a file with the same name already exists. To save the file, either provide a different name, or move asid

2013-10-18 11:17:56 1680

原创 iPhone 开发--btn

[self setTitleEdgeInsets:UIEdgeInsetsMake( 0.0,-backGroundImag.size.width, 0.0,0.0)];   [self setImageEdgeInsets:UIEdgeInsetsMake(0.0, 0.0,0.0, -self.titleLabel.bounds.size.width)]; se

2013-10-18 11:16:56 668

原创 iphone 开发--用到的 define

#define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);  //打印函数行 名 #define pwd printf("%s %d\n", __PRETTY_FUNCTION__, __LINE__); #define debug_object(

2013-10-18 11:14:24 680

原创 iPhone开发-- 静态链接库问题

ld: warning: ignoring file /Volumes/Xcode/Xcode.app/Contents/Developer/Library/Frameworks/SenTestingKit.framework/SenTestingKit, missing required architecture armv7 in file ld: duplicate symbol _OBJC

2013-10-18 11:01:54 1399

转载 iphone开发之AppDelegate中的方法和作用

协议中定义的这些需要实现的方法的作用: 1、- (void)applicationWillResignActive:(UIApplication *)application 说明:当应用程序将要入非活动状态执行,在此期间,应用程序不接收消息或事件,比如来电话了 2、- (void)applicationDidBecomeActive:(UIApplication *)application

2013-10-18 10:58:14 581

转载 iOS开发之网页缓存

From: http://mobile.51cto.com/iphone-280314.htm 浅谈iOS开发之内存缓存是本文要的内容,主要僵尸如何将内存缓存到内存中,使用缓存的目的是为了使用的应用程序能更快速的响应用户输入,是程序高效的运行。有时候我们需要将远程web服务器获取的数据缓存起来,减少对同一个url多次请求。 内存缓存我们可以使用sdk中的NSURLCac

2013-03-26 18:39:44 664

xScope 3.6.2

一款功能强大的工具,设计者必备,能测量 坐标,提取颜色。。。

2013-12-30

rar解压缩formac

一个mac系统下的解压缩工具,能解压rar文件

2013-12-30

2011 c++最佳课件

这是熬了几个夜晚写的课件,简单易懂,送给喜欢编程的孩子们

2011-05-07

空空如也

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

TA关注的人

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