- 博客(20)
- 资源 (3)
- 收藏
- 关注
原创 webview 乱码
NSURL *url =[NSURLURLWithString:urlString]; // NSURLRequest *request = [NSURLRequest requestWithURL:url cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:30.0];// [webView lo...
2014-04-11 15:46:37 563
原创 小问题
14/2/26产品介绍右布局 计算lab高度, UITextView * contentXXs_label=[[UITextViewalloc] initWithFrame:frame]; contentXXs_label.font=[UIFontfontWithName:@"STFangsong"size:18.0f];
2014-02-26 16:41:41 507
原创 xcode 弹出 please tell me who you are
xcode git配置如图提示 添加自己用户名和email 1.随便建立个项目 2 终端到项目目录下面3 如上命令
2014-02-19 17:07:06 4058
原创 ios7上SegmentedControl 图片使用
在早期版本的iOS中,自定义栏上按钮图片会自动被当做“template image”。(template image被用作最终图像的一个遮罩。)而iOS 7中,你可以使用以下UIImage属性来指定是否需要把自定义的图片当做template image来处理:UIImageRenderingModeAlwaysTemplate。图片被用作Template Image。UIImageRend
2013-12-30 17:35:04 890
原创 iphone 开发 --。。。
判断是不是纯数字- (BOOL)isPureInt:(NSString *)string{ NSScanner* scan = [NSScanner scannerWithString:string]; int val; return [scan scanInt:&val] && [scan isAtEnd];}判断是否有空格
2013-10-18 11:38:31 547
转载 iPhone 开发 nsarray
1. makeObjectsPerformSelector:@select(aMethod)简介:让数组中的每个元素 都调用 aMethod 2. makeObjectsPerformSelector:@select(aMethod) withObject:oneObject简介:让数组中的每个元素 都调用 aMethod 并把 with
2013-10-18 11:35:16 618
转载 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 554
转载 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 982
原创 iphone 开发 网址--博客
http://www.lan27.com/article/200808/7893.htm goole http://www.open-open.com/lib/view/open1349782799838.htmlhttp://mobile.51cto.com/iphone-278633.htm /端点http://www.cnblogs.co
2013-10-18 11:30:01 624
原创 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 625
转载 iPhone开发--scr
scrollview * @param andshowsHorizontal 显示滚动条 * @param andshowsVertical 垂直滚动条 * @param andBounces 超过边界会有反弹效果 默认YES//只要滚动了就会触发- (void)scrollViewDidScroll:(UIScr
2013-10-18 11:25:41 746
转载 关于UIView的autoresizingMask属性的研究
UIView中有个属性是autoresizingMask,该属性是用来控制控件的自适应。 UIViewAutoresizingNone = 0,UIViewAutoresizingFlexibleLeftMargin = 1 UIViewAutoresizingFlexibleWidth = 1 UIViewAutoresizi
2013-10-18 11:24:26 642
原创 iPhone开发--uitableview
设置tableview属性:_tableView.transform = CGAffineTransformMakeRotation(-M_PI / 2);设置cell属性cell.contentView.transform = CGAffineTransformMakeRotation(M_PI / 2);
2013-10-18 11:22:02 620
原创 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 1703
原创 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 683
原创 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 696
原创 iPhone开发-- 静态链接库问题
ld: warning: ignoring file /Volumes/Xcode/Xcode.app/Contents/Developer/Library/Frameworks/SenTestingKit.framework/SenTestingKit, missing required architecture armv7 in fileld: duplicate symbol _OBJC
2013-10-18 11:01:54 1412
转载 iphone开发之AppDelegate中的方法和作用
协议中定义的这些需要实现的方法的作用:1、- (void)applicationWillResignActive:(UIApplication *)application说明:当应用程序将要入非活动状态执行,在此期间,应用程序不接收消息或事件,比如来电话了2、- (void)applicationDidBecomeActive:(UIApplication *)application
2013-10-18 10:58:14 590
转载 iOS开发之网页缓存
From: http://mobile.51cto.com/iphone-280314.htm浅谈iOS开发之内存缓存是本文要的内容,主要僵尸如何将内存缓存到内存中,使用缓存的目的是为了使用的应用程序能更快速的响应用户输入,是程序高效的运行。有时候我们需要将远程web服务器获取的数据缓存起来,减少对同一个url多次请求。内存缓存我们可以使用sdk中的NSURLCac
2013-03-26 18:39:44 680
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人