上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 73 下一页
摘要: 本文转载至:http://www.cnblogs.com/huangdongcheng/archive/2011/11/21.html1.UIImageView的讲解(1)初始化UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0.0,45.0,300,300)];imageView.image = [UIImage imageNamed:@"a.png"];//加载入图片[self.view addSubView:image];也可以这样声明:UIImage *image = [[ 阅读全文
posted @ 2013-09-11 13:36 天牛 阅读(385) 评论(0) 推荐(0)
摘要: 参考网址:http://blog.csdn.net/lovenjoe/article/details/7484217天牛 感谢作者的硕果在Iphone上有两种读取图片数据的简单方法:UIImageJPEGRepresentation和UIImagePNGRepresentation.UIImageJPEGRepresentation函数需要两个参数:图片的引用和压缩系数.而UIImagePNGRepresentation只需要图片引用作为参数.通过在实际使用过程中,比较发现: UIImagePNGRepresentation(UIImage* image) 要比UIImageJPEGRepre 阅读全文
posted @ 2013-09-04 16:00 天牛 阅读(709) 评论(0) 推荐(0)
摘要: 本文转载至:http://www.cnblogs.com/pengyingh/articles/2350345.html天牛 感谢原创作者的硕果//file文件操作NSFileManager常见的NSFileManager文件的方法:-(BOOL)contentsAtPath:path 从文件中读取数据-(BOOL)createFileAtPath:path contents:(BOOL)data attributes:attr 向一个文件写入数据-(BOOL)removeFileAtPath: path handler: handler 删除一个文件-(BOOL)move... 阅读全文
posted @ 2013-09-04 15:54 天牛 阅读(306) 评论(0) 推荐(0)
摘要: 本文转载至:http://blog.csdn.net/longzs/article/details/8373586从 iphone 的 照片库中选取的图片,由于 系统不能返回其文件的具体路径,所以这时要用到 ALAssetsLibrary代码如下: ALAssetsLibrary* alLibrary = [[ALAssetsLibrary alloc] init]; __block float fileMB = 0.0; [alLibrary assetForURL:[info objectForKey:UIImagePickerControllerReferenceURL] resultB 阅读全文
posted @ 2013-09-04 15:50 天牛 阅读(624) 评论(0) 推荐(0)
摘要: 使用ASIHTTPRequest xcode编译提示找不到"libxml/HTMLparser.h",解决方法如下:1>.在xcode中左边选中项目的root节点,在中间编辑区的搜索框中输入"header search paths",双击Header Search Paths项,点击加号增加一项并输入"${SDK_DIR}/usr/include/libxml2",点击done按钮结束.2>.再次在搜索框中输入"other linker flags",双击Other Linker Flags项,点击加号 阅读全文
posted @ 2013-09-02 16:25 天牛 阅读(214) 评论(0) 推荐(0)
摘要: 原文地址:http://benscheirman.com/2013/08/the-ios-developers-toolbelt(需FQ)如果你去到一位熟练的木匠的工作室,你总是能发现他/她有一堆工具来完成不同的任务。软件开发同样如此。你可以从软件开发者如何使用工具中看出他水准如何。有经验的开发者精于使用工具。对你目前所使用的工具不断研究,同时了解一些替代品的使用,当你目前所用的工具无法满足你的需要时可以填补空缺。记住了这些,我将向你展示一份关于各种工具的长长的列表。其中一些我每天都用,其他的我看情况使用。如果你还有更多的工具想展示在这个列表里,可以跟我留言哦亲。我尽我所能给列表分分类。有一些 阅读全文
posted @ 2013-09-02 11:56 天牛 阅读(154) 评论(0) 推荐(0)
摘要: The concrete subclasses of UIGestureRecognizer are the following:UITapGestureRecognizerUIPinchGestureRecognizerUIRotationGestureRecognizerUISwipeGestureRecognizerUIPanGestureRecognizerUILongPressGestureRecognizer一个gesture recognizer是针对一个特定的view的(包含其subview),用UIView的方法addGestureRecognize:去关联一个view一个g 阅读全文
posted @ 2013-09-01 23:21 天牛 阅读(375) 评论(0) 推荐(0)
摘要: 一.Gesture RecognizersGesture Recognizers是在iOS3.2引入的,可以用来识别手势、简化定制视图事件处理的对象。Gesture Recognizers的基类为UIGestureRecognizer,这一个抽象基类,定义了实现底层手势识别行为的编程接口。在UIKit框架中提供了6个具体的手势识别类,用来识别常见的手势。这6个手势识别器类为:UITapGestureRecognizer:用来识别点击手势,包括单击,双击,甚至三击等。UIPinchGestureRecognizer:用来识别手指捏合手势。UIPanGestureRecognizer:用来识别拖动 阅读全文
posted @ 2013-09-01 23:17 天牛 阅读(1649) 评论(0) 推荐(0)
摘要: 1. UITouch 的主要方法:C代码 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event; - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event; - (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event; - (vo... 阅读全文
posted @ 2013-08-31 16:26 天牛 阅读(429) 评论(0) 推荐(0)
摘要: 本文转载至:http://blog.csdn.net/k12104/article/details/8537695On iPad, UIImagePickerController must be presented via UIPopoverController 可以用以下方法来判断设备的类型选择不同的Controllerif(UI_USER_INTERFACE_IDIOM()==UIUserInterfaceIdiomPhone){// We are using an iPhoneUIActionSheet*alertSheet =[[UIActionSheet alloc] initWi. 阅读全文
posted @ 2013-08-28 19:14 天牛 阅读(831) 评论(0) 推荐(0)
上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 73 下一页