2013年1月28日

随机动画效果

摘要: ViewController.m 1 #import "ViewController.h" 2 #define MAX_SIZE 25//雪花大小 3 #define MAX_TIME 20//飘落时间 4 #define MIN_TIME 5 5 6 @implementation ViewController 7 8 - (void)viewDidLoad 9 {10 [super viewDidLoad];11 //背景颜色12 [self.view setBackgroundColor:[UIColor colorWithRed:0.45 green:0.4... 阅读全文

posted @ 2013-01-28 19:29 灰色的人 阅读(208) 评论(0) 推荐(0) 编辑

图片轮流显示

摘要: UIImageView内置的动画功能原理:轮流显示一组图片 1 #import "ViewController.h" 2 3 @implementation ViewController 4 5 - (void)viewDidLoad 6 { 7 [super viewDidLoad]; 8 9 NSMutableArray *array = [[NSMutableArray alloc]initWithCapacity:0];10 for (int i = 1; i <= 10; i++) {11 UIImage *img = [UIIm... 阅读全文

posted @ 2013-01-28 16:05 灰色的人 阅读(325) 评论(0) 推荐(0) 编辑

MKMapView+MKAnnotation

摘要: ViewController.h1 #import <UIKit/UIKit.h>2 #import "MapKit/MapKit.h"3 4 @interface ViewController : UIViewController5 <CLLocationManagerDelegate,MKMapViewDelegate>6 {7 MKMapView *_mapView;8 }9 @endViewController.m 1 #import "ViewController.h" 2 #import "MyAnnotat 阅读全文

posted @ 2013-01-28 10:45 灰色的人 阅读(2999) 评论(0) 推荐(0) 编辑

导航