我用的是Xcode6.2. 系统默认没有pch文件。 所以没有自动导入UIKit包。我在继承NSObject类里也不能用CGRect或者UI开头的控件,原因也是Xcode6.2以后版本缺少UIKit 框架,引入框架就可以用了在你的XXXXX.h 文件里面 导入#import
分类:
其他好文 时间:
2015-05-28 22:50:07
阅读次数:
169
Present ViewController Modally一、主要用途 弹出模态ViewController是IOS变成中很有用的一个技术,UIKit提供的一些专门用于模态显示的ViewController,如UIImagePickerController等。弹出模态ViewController主...
分类:
其他好文 时间:
2015-05-27 12:01:00
阅读次数:
89
UIKit框架中有各种Bar,UITabBar、UINavigationBar、UIToolbar。Bar对应的就有一些Item,tabBarItem、navigationItem、toolbarItems,再加上UIViewController、UINavigationController、UIT...
分类:
其他好文 时间:
2015-05-26 18:44:31
阅读次数:
128
IOS8之后增加了UIAlertController类,它可以表示UIAlertView和UIActionSheet.它继承自UIViewController。- (BOOL)application:(UIApplication *)application didFinishLaunchingWit...
分类:
其他好文 时间:
2015-05-25 17:58:55
阅读次数:
176
1.自定义UICollectionViewCell在myCollectionViewCell.h中声明两个属性//// myCollectionViewCell.h// UICollectionView//// Created by City--Online on 15/5/25.// Co...
分类:
其他好文 时间:
2015-05-25 16:27:51
阅读次数:
175
文章转载:http://blog.sina.com.cn/s/blog_7b9d64af0101b8nh.html在iOS中动画实现技术主要是:Core Animation。Core Animation负责所有的滚动、旋转、缩小和放大以及所有的iOS动画效果。其中UIKit类通常都有animated...
分类:
移动开发 时间:
2015-05-25 14:26:28
阅读次数:
201
又给自己挖了一个坑,我很喜欢动画不错,但是写出来又是另外一个问题了~~~这一篇我们来说说UIKit中的动画API,其中包括:UIView.UIView.animateWithDurationUIView.transitionWithViewUIView.animateKeyframesWithDur...
分类:
移动开发 时间:
2015-05-22 20:54:25
阅读次数:
155
//// ViewController.m// UItextView//// Created by City--Online on 15/5/22.// Copyright (c) 2015年 XQB. All rights reserved.//#import "ViewControlle...
分类:
其他好文 时间:
2015-05-22 18:50:36
阅读次数:
137
//// ViewController.m// UITableView//// Created by City--Online on 15/5/21.// Copyright (c) 2015年 XQB. All rights reserved.//#import "ViewControll...
分类:
其他好文 时间:
2015-05-22 16:34:27
阅读次数:
177
来看一个例子: #import <Foundation/Foundation.h> @interface MyTst : NSObject - (void) print; @end @implementation MyTst - (void) print { ? ? NSLog(@"xxxxxxxxxx"); } @end #import <UIKit/UIKit.h> #...
分类:
其他好文 时间:
2015-05-22 09:54:36
阅读次数:
117