上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页

2016年4月25日

iOS开发——缩放图片

摘要: 捏合图片,在原imageView中放大缩小图片。 懒得多说,直接上代码: // // ViewController.m // Demo-hehehe // // Created by yyt on 16/4/25. // Copyright © 2016年 yyt. All rights reser 阅读全文

posted @ 2016-04-25 16:42 乱七八糟21号 阅读(263) 评论(0) 推荐(0)

2016年4月22日

iOS开发——UIAlertController

摘要: iOS8之后,UIAlertView和UIActionSheet被干掉了,取而代之的是UIAlertController和UIAlertAction。 UIAlertController有两种样式,一个是UIAlertControllerStyleAlert,就是以前的UIAlertView,还有一 阅读全文

posted @ 2016-04-22 18:23 乱七八糟21号 阅读(342) 评论(0) 推荐(0)

2016年4月21日

iOS开发——闪光灯

摘要: 还是那句很欠揍的话,没啥难度,直接上代码。 // // ViewController.m // Demo—闪光灯 // // Created by yyt on 16/4/21. // Copyright © 2016年 yyt. All rights reserved. // #import "V 阅读全文

posted @ 2016-04-21 10:20 乱七八糟21号 阅读(349) 评论(0) 推荐(0)

iOS开发——刮奖

摘要: 还是直接上代码,有什么问题的话,直接评论。 1.在YYTScratchView.h文件中 // // YYTScratchView.h // Demo-刮奖 // // Created by yyt on 16/4/20. // Copyright © 2016年 yyt. All rights r 阅读全文

posted @ 2016-04-21 09:33 乱七八糟21号 阅读(465) 评论(0) 推荐(0)

2016年4月20日

iOS开发——自定义AlertView

摘要: 自定义的AlertView,可以选择出现的动画方式,正文信息高度自动变化,特意做了几个可以对比。没啥难点,直接上代码,一看就懂。 1.在YYTAlertView.h文件中 // // YYTAlertView.h // Demo-自定义alertView // // Created by yyt o 阅读全文

posted @ 2016-04-20 22:55 乱七八糟21号 阅读(1032) 评论(0) 推荐(0)

2016年4月5日

iOS开发——An App ID with identifier "*****" is not avaliable

摘要: Error: An App ID with identifier "*****" is not avaliable. Please enter a different string. 错误原因是这个bundle ID已经被别人提前占用了.这种错误一般发生在你运行别人的项目. 解决办法当然是修改你的b 阅读全文

posted @ 2016-04-05 17:34 乱七八糟21号 阅读(264) 评论(0) 推荐(0)

2016年4月1日

iOS开发——沙箱

摘要: iOS的沙盒机制,应用只能访问自己应用目录下的文件。可以形象的理解为,一个个应用,就相当于一个个的碉堡,各是各的空间, iphone沙箱模型的有三个文件夹,documents,tmp,Library。有时开发时要求我们保存一些数据在本地,这就用到了。 1、Documents 目录:苹果建议将程序创建 阅读全文

posted @ 2016-04-01 17:53 乱七八糟21号 阅读(668) 评论(0) 推荐(0)

2016年3月30日

iOS开发——delegate的相关警告

摘要: 警告:Assigning to 'id<...Delegate>' from incompatible type '...ViewController *const_strong' 解决方法:在viewcontroller.m文件中,将@interface ViewController (),改为@ 阅读全文

posted @ 2016-03-30 17:30 乱七八糟21号 阅读(330) 评论(0) 推荐(0)

iOS开发——modifying the autolayout engine from a background thread

摘要: 很多时候,我们需要用到多线程的东西,比如红外线检测是否有人经过。这种情况需要搞个子线程在后台不断的检测,这个线程可能是第三方提供的,你调用它给的方法,然后显示提示框的时候,问题就来了。 提示信息:This application is modifying the autolayout engine 阅读全文

posted @ 2016-03-30 14:50 乱七八糟21号 阅读(714) 评论(0) 推荐(0)

2016年3月26日

iOS开发——代理与block传值

摘要: 一、代理传值的方法 1.Hehe1ViewController.h中 #import <UIKit/UIKit.h> @protocol Hehe1ViewControllerDelegate <NSObject> - (void)backValueWith:(NSString*)str; @end 阅读全文

posted @ 2016-03-26 11:44 乱七八糟21号 阅读(280) 评论(0) 推荐(0)

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页

导航