摘要: imageNamed 与 imageWithContentsOfFile的区别(来自http://www.cnblogs.com/pengyingh/articles/2355033.html)如题,是不是大家为了方便都这样加载图片啊myImage = [UIImage imageNamed:@"icon.png"];那么小心了这种方法在一些图片很少,或者图片很小的程序里是ok的。但是,在大量加载图片的程序里,请千万不要这样做。为什么呢 ???????这种方法在application bundle的顶层文件夹寻找由供应的名字的图象 。 如果找到图片,装载到iPhone系统缓 阅读全文
posted @ 2014-01-20 13:49 嘟嘟夜未央 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1 // 2 // UIButton1.h 3 // UIKit 4 //http://blog.163.com/fuxiaohui@126/blog/static/131745826201172601821628/ 5 // Copyright (c) 2005-2013, Apple Inc. All rights reserved. 6 // 7 8 #import 9 #import 10 #import 11 #import 12 #import 13 14 @class UIImage, UIFont, UIColor, UIImageVie... 阅读全文
posted @ 2014-01-20 13:08 嘟嘟夜未央 阅读(1006) 评论(0) 推荐(0) 编辑
摘要: iOS6与iOS7屏幕适配技巧(转) 阅读全文
posted @ 2014-01-17 16:33 嘟嘟夜未央 阅读(95) 评论(0) 推荐(0) 编辑
摘要: // CustomField.h#import @interface CustomField : UITextField@end// CustomField.m#import "CustomField.h"@implementation CustomField- (id)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { // Initialization code } return self;}/*// Only override drawRect:... 阅读全文
posted @ 2014-01-17 16:01 嘟嘟夜未央 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 1.下载AFNetworking资源包 下载2.将资源包添加到工程文件。3.在工程的Supporting File群组中打开预编译头文件XXX-Prefix.pch。然后在别的import后面添加如下一行代码#import “AFNetworking”将AFNetworking添加到预编译头文件,意味着这个框架会被自动的添加到工程的所有源代码文件中。4.AFNetworking通过网络来加载和处理结构化的数据非常明智,它支持JSON,XML,Property List。static NSString*const BaseURLString = @"http://www.raywend 阅读全文
posted @ 2014-01-17 10:24 嘟嘟夜未央 阅读(640) 评论(0) 推荐(0) 编辑
摘要: AFNetwork作用和用法详解 阅读全文
posted @ 2014-01-16 14:11 嘟嘟夜未央 阅读(105) 评论(0) 推荐(0) 编辑
摘要: //开始一个动画块 [UIView beginAnimations:@"View1" context:nil]; //设置是否激活动画 [UIView setAnimationsEnabled:YES]; //设置在动画块内部动画属性改变开始的时间 [UIView setAnimationStartDate:(NSDate*)startTime]; //... 阅读全文
posted @ 2014-01-15 23:53 嘟嘟夜未央 阅读(148) 评论(0) 推荐(0) 编辑
摘要: cnblogs 博客园csdn 国内比较大的技术网站chinaunix 做linux/unix都在这http://blog.51cto.com/http://www.iteye.com/blogs 阅读全文
posted @ 2014-01-15 23:45 嘟嘟夜未央 阅读(374) 评论(0) 推荐(0) 编辑
摘要: //跳转- ( void)present:( id )sender { NSLog ( @"the button,is clicked …" ); // 创建准备跳转的 UIViewController ModalViewController *modalViewController = [[ ModalViewController alloc ]init ]; // 设置跳转效果 modalViewController. modalTransitionStyle =UIModalTransitionStyleCoverVertical ; // 开始跳转 ... 阅读全文
posted @ 2014-01-15 18:51 嘟嘟夜未央 阅读(194) 评论(0) 推荐(0) 编辑
摘要: UIView *loadView = [[UIControl alloc]initWithFrame:CGRectMake(0,0,320,480)]; loadView.backgroundColor = [UIColor clearColor]; [(UIControl *)loadView addTarget:self action:@selector(removeLoadView1)forControlEvents:UIControlEventTouchUpInside]; 阅读全文
posted @ 2014-01-15 13:39 嘟嘟夜未央 阅读(155) 评论(0) 推荐(0) 编辑