- 博客(24)
- 收藏
- 关注
原创 App支持
如果对App建议和想法,请邮件 3477275298@qq.comContact me via Email 3477275298@qq.com
2017-02-28 08:13:22
5976
转载 常用的在CALayer上画图的方法
首先,获取上下文CGContextRef context = UIGraphicsGetCurrentContext();画无框矩形//设置矩形填充颜色:红色 CGContextSetRGBFillColor(context, 1.0, 0.0, 0.0, 1.0); //填充矩形 CGContextFillRect(context,
2014-03-30 18:48:23
844
翻译 CALay 的三维变换
Figure 1-7 Converting a coordinate using matrix math可见只要实现上图的矩阵,就能满足我们的要求了,如果还不清楚,这里有更详细的说明:这里在记录下 CABasicAnimation animationWithKeyPath的参数:opacity,position,transfor
2014-03-29 22:50:28
657
转载 关于CAAnimotion
动画分隐式动画和显式动画CAAnimatione采用了CAMediaTiming协议,可以调整时间,包括持续时间,速度,重复次数;采用了CAAction协议,可以通过响应动作的方式来显示动画.CAAnimation的一些派生类:CATransition 提供渐变效果:(推拉push效果,消退fade效果,揭开reveal效果)CAAnimationGroup 允许多个动
2014-03-17 10:47:26
490
原创 coredata 简单使用
要使用Coredata, 必定会使用到3个类,代码#pragma mark - Core Data stack// Returns the managed object context for the application.// If the context doesn't already exist, it is created and bound to the p
2014-03-15 21:32:01
447
转载 转
@interface ViewController : UIViewControllerUIScrollViewDelegate>{ UIScrollView * scrollView; UIPageControl * pageControl; // BOOL pageControlIsChangingPage;
2014-03-12 17:02:41
514
转载 改变UINavigationcontroller的方法 记录下来
//// MJNavigationController.m// 快速集成下拉刷新//// Created by apple on 13-12-23.// Copyright (c) 2013年 itcast. All rights reserved.//// 判断是否为iOS7#define iOS7 ([[[UIDevice currentDevice] systemVe
2014-03-10 23:20:54
496
转载 navigationbar 背景色
方法一:可以修改navigationbar的tintcolor属性来达到目的,self.navigationController.navigationBar.tintColor = [UIColor colorWithRed:200/255.0f green:200/255.0f blue:184/255.0f alpha:1.0f];方法二:self.navigationC
2014-03-10 15:06:06
17558
原创 UINavigationController UITabBarController设置title
UINavigationController和UITabBarController都是输入导航用的controller,对他们要显示的文字设置一般都是在他们所包含的子viewcontroller中设置:对UITabBarController1 :- (id)init{self = [super initWithNibName:nilbundle:nil];if (sel
2014-03-10 15:03:19
1523
转载 How to loadview
- (void)loadView{// If a nibName was passed to initWithNibName:bundle:...if ([self nibName]) {// Load that nib file, with ourselves as the file's owner, thus connecting// the view outlet to the v
2014-03-10 14:38:39
489
转载 转载 -uipagecontroller
- (void)viewDidLoad{ [superviewDidLoad]; self.view.backgroundColor = [UIColorcolorWithPatternImage:[UIImageimageNamed:@"bg_blank.png"]]; // self.view.backgroundColor = [UIColor clearCo
2014-03-10 11:12:00
438
原创 ios-GCD
最近几天对IOS的GCD敢兴趣了,所以做点记录 :1:GCD在IOS6之后,是开启了自动计数的,之前需要使用 dispatch_retain 和 dispatch_release来手动计数,所以我们在高版本需要手动计数的时候,需要加入-DOS_OBJECT_USE_OBJC=0 到编译选项。2:常用函数dispatch_queue_t dispatch_get_glob
2014-03-09 13:47:30
709
转载 记录点ios常用资源库
使用Object-C的第三方库封装了许多常用界面和功能,用这些苦不仅可以节约大量时间,还可以做出不错的效果。同样的东西自己来编写代码可能就需要花费大量的时间和精力,还不定能成功。下面列举常用的第三方用,持续更新。 BWStatusBarOverlay 定制状态栏 MWPhotoBrowser 照片浏览器 FTCoreText 富文本编辑 Le
2014-02-28 15:15:42
521
转载 一句话小计:initWithNibName
- (id)initWithNibName:(NSString *)nibName bundle:(NSBundle *)bundle{self = [super initWithNibName:nilbundle:nil];// Get a pointer to the application bundle objectNSBundle *appBundle = [NSBundle m
2014-02-28 09:46:23
507
转载 一句话小计 initWithNibName
- (id)initWithNibName:(NSString *)nibName bundle:(NSBundle *)bundle{self = [super initWithNibName:nilbundle:nil];// Get a pointer to the application bundle objectNSBundle *appBundle = [NSBundle m
2014-02-28 09:44:41
480
转载 How to find identifier in IOS7
You cannot get the unique identifier directly in iOS7.In app delegate, there is a method called "application:didRegisterForRemoteNotificationsWithDeviceToken:", Use this method you can get the dev
2014-02-26 21:44:51
489
原创 在xcode 5中使用xib文件
好久没做过IOS开发,今天新建了个工程,打开不知道怎么做了,因为找不到MainWindow.xib 这个文件了,现在默认使用storyboard,这个以前没用过,就想着,怎么能快速的切换回原来的模式呢,一番折腾后,OK了,步骤如下:1 建立"Empty Application"2: 新建一个UIViewController 的子类,这个步骤和以前一样,注意选择"With X
2014-02-23 19:57:04
743
翻译 IOS运行目录说明
我们都是知道IOS是运行在系统的沙盒(sandbox)里的,其它应用程序不能访问你沙盒里的数据,保证了数据的安全性,那么这些目录又有什么区别呢:1 application bundel:此目录包含你的所有资源文件和可执行文件,这个目录是只读属性2 Library/Preferences: 此目录存放你程序的设置文件,目录下的文件在与iTunes同步时会被备份3 Library/
2014-02-20 14:24:15
537
转载 volatile关键字
volatile 主要用于修饰简单类型的变量,比如char int 等等,不能修饰类变量,作用是告诉编译器,带这个属性的变量,在编译时不能做优化,主要用在多线程编程环境中。这里说的非常的具体了:http://www.baidu.com/s?tn=19045005_29_pg&ie=utf-8&bs=nonatomic&f=8&rsv_bp=1&rsv_spt=3&wd=volati
2014-02-16 22:05:51
530
原创 关于IOS面试的问题
今天参见一个IOS的面试,说实话,毕业这么久也就做了2年左右时间的IOS,一共4个作品,而且进1年时间没做IOS,所以IOS的好多东西都知道个大概,回答的不是很满意,记录,下载记录下来,会尽快补上相应文章。1:请解释C中的关键字 voliatile2:IOS的autorelease 机制3:解释下deleage4:什么是kvc 什么是kvo 5:nil、Nil、NULL 有什么
2014-02-16 15:19:30
466
原创 关于如何从list中查找需要的匹配的数据
大家都知道erlang常用list来存储数据比如:[{name,"Horace"},{sex,"Male"},{live,"CD"}]这种key-value来存储一个人的信息,那么我们如何能快速的从一个list中找到需要的信息呢,我们有2个函数可以使用帮助:1:proplists:get_value Info = [{name,"Horace"},{sex,"Male"},{l
2014-02-13 16:07:05
3629
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅