-(void)viewDidLoad
{
[super viewDidLoad];
imageView=[[UIImageView alloc] initWithFrame:CGRectMake(100, 150, 120, 120)];
imageView.image=[UIImage imageNamed:@"2.jpg"];
[s...
分类:
移动开发 时间:
2015-04-21 13:08:41
阅读次数:
158
系统地图:#import "ViewController.h"#import @interface ViewController (){ MKMapView *_mapView; CLLocationManager *_manager; UIImageView* _imageView;}@end@i...
分类:
其他好文 时间:
2015-04-20 16:30:49
阅读次数:
266
1.创建一个Xcode工程2.打开Main.storyboard,添一个UIImageView视图,并为UIImageView插入图片3.打开ViewController.swift,在viewDidLoad方法下添加以下代码override func viewDidLoad() { ...
分类:
其他好文 时间:
2015-04-20 00:21:50
阅读次数:
155
1 UIScrollView无限滚动 2 3 #import "ViewController.h" 4 5 #define kCount 8 6 7 @interface ViewController () 8 { 9 UIImageView *_reusableView; /...
分类:
其他好文 时间:
2015-04-20 00:20:56
阅读次数:
151
1.UIView//初始状态[UIView animateWithDuration:(int) animations:^{//最终状态}completion:^(BOOL finished){//动画完成后需要做的事情}];2.UIView//初始状态[UIView startAnimation];...
分类:
移动开发 时间:
2015-04-18 23:31:06
阅读次数:
188
// Created By 郭仔 2015年04月17日23:30:33
今天搞了一晚上的设计模式,本来用ios启动流程的初始代理UIApplicationDeleg来设置页面转换的,却越来越麻烦,还是用了简单的笨方法实现了,明天把这个内容写下来。
==================
没什么时间了,直接上代码:
==================
UIImageView:...
分类:
其他好文 时间:
2015-04-17 23:51:15
阅读次数:
155
UIImageView的手势处理可以响应点击事件。1.self.allScreenImg.userInteractionEnabled=YES;//UIImageView默认不响应手势,需要开启userInteractionEnabled//处理单击事件UITapGestureRecognizer*singleTap=[[UITapGestureRecognizeralloc]initWithTarget:selfaction:@sele..
分类:
移动开发 时间:
2015-04-17 18:34:33
阅读次数:
185
UIImageView *imgView=[[UIImageView alloc]initWithFrame:CGRectMake(100, 100, 75, 75)]; imgView.image=[UIImage imageNamed:@"a"]; imgView.tag=200; [se...
分类:
其他好文 时间:
2015-04-16 21:46:07
阅读次数:
154
.h#import @interface ZHCustomImageView : UIView//提供接口@property (nonatomic, strong) UIImage* image;- (instancetype)initWithImage:(UIImage*)image;@end.m...
分类:
其他好文 时间:
2015-04-16 13:59:35
阅读次数:
140
前面了解了手势识别的点击以及代理方法,其他的几个手势识别都是差不多#import "ViewController.h"@interface ViewController ()@property(nonatomic,strong)UIImageView *imgView;@end@implementa...
分类:
其他好文 时间:
2015-04-15 16:58:01
阅读次数:
184