Suche senden
Hochladen
iPhone/iPad开发讲座 第五讲 定制视图和多点触摸
•
Als KEY, PDF herunterladen
•
22 gefällt mir
•
1,595 views
H
Hao Peiqiang
Folgen
Melden
Teilen
Melden
Teilen
1 von 32
Jetzt herunterladen
Empfohlen
Tiling and Zooming ASCII Art @ iOSoho
Tiling and Zooming ASCII Art @ iOSoho
Daniel Doubrovkine
3D drawing
3D drawing
JordanDoimary
Barcamp GoogleMaps - praktické ukázky kódu
Barcamp GoogleMaps - praktické ukázky kódu
Milos Lenoch
ARTDM 170, Week13: Processing
ARTDM 170, Week13: Processing
Gilbert Guerrero
Efek daun
Efek daun
Yadi Adi
סרג' קרול
סרג' קרול
Netcraft
3D Design with OpenSCAD
3D Design with OpenSCAD
VickyTGAW
2 circumcenter
2 circumcenter
Media4math
Empfohlen
Tiling and Zooming ASCII Art @ iOSoho
Tiling and Zooming ASCII Art @ iOSoho
Daniel Doubrovkine
3D drawing
3D drawing
JordanDoimary
Barcamp GoogleMaps - praktické ukázky kódu
Barcamp GoogleMaps - praktické ukázky kódu
Milos Lenoch
ARTDM 170, Week13: Processing
ARTDM 170, Week13: Processing
Gilbert Guerrero
Efek daun
Efek daun
Yadi Adi
סרג' קרול
סרג' קרול
Netcraft
3D Design with OpenSCAD
3D Design with OpenSCAD
VickyTGAW
2 circumcenter
2 circumcenter
Media4math
CakePHP in iPhone App
CakePHP in iPhone App
Akihiro Matsuura
31csharp
31csharp
Sireesh K
cocos2d for i Phoneの紹介
cocos2d for i Phoneの紹介
Jun-ichi Shinde
Georgiy Shur: Bring onboarding to life
Georgiy Shur: Bring onboarding to life
mdevtalk
Scaling compression2
Scaling compression2
Amr Nasr
Snow
Snow
Desarrollo Regional de la Educación
Better performance through Superscalarity
Better performance through Superscalarity
Mårten Rånge
11173 rabia zafar_web_mcqs_76658_337172634
11173 rabia zafar_web_mcqs_76658_337172634
university of Gujrat, pakistan
IDC 2010 Conference Presentation
IDC 2010 Conference Presentation
Gonçalo Amador
Proga 090525
Proga 090525
Atsushi Tadokoro
CocoaHeads Toulouse - Guillaume Cerquant - UIView
CocoaHeads Toulouse - Guillaume Cerquant - UIView
CocoaHeads France
iOS 7 SDK特訓班
iOS 7 SDK特訓班
彼得潘 Pan
I phone勉強会 (2011.11.23)
I phone勉強会 (2011.11.23)
Katsumi Kishikawa
Synchronizing without internet - Multipeer Connectivity (iOS)
Synchronizing without internet - Multipeer Connectivity (iOS)
Jorge Maroto
Core animation
Core animation
Weizhong Yang
Core Image: The Most Fun API You're Not Using, CocoaConf Atlanta, December 2014
Core Image: The Most Fun API You're Not Using, CocoaConf Atlanta, December 2014
Chris Adamson
Cocos2d 소개 - Korea Linux Forum 2014
Cocos2d 소개 - Korea Linux Forum 2014
Changwon National University
004
004
Stronger Shen
iOS Training Session-3
iOS Training Session-3
Hussain Behestee
Desenvolvimento iOS - Aula 4
Desenvolvimento iOS - Aula 4
Saulo Arruda
Style vs. Content and Clean Theming in iOS
Style vs. Content and Clean Theming in iOS
Keith Norman
203 Is It Real or Is It Virtual? Augmented Reality on the iPhone
203 Is It Real or Is It Virtual? Augmented Reality on the iPhone
jonmarimba
Weitere ähnliche Inhalte
Was ist angesagt?
CakePHP in iPhone App
CakePHP in iPhone App
Akihiro Matsuura
31csharp
31csharp
Sireesh K
cocos2d for i Phoneの紹介
cocos2d for i Phoneの紹介
Jun-ichi Shinde
Georgiy Shur: Bring onboarding to life
Georgiy Shur: Bring onboarding to life
mdevtalk
Scaling compression2
Scaling compression2
Amr Nasr
Snow
Snow
Desarrollo Regional de la Educación
Better performance through Superscalarity
Better performance through Superscalarity
Mårten Rånge
11173 rabia zafar_web_mcqs_76658_337172634
11173 rabia zafar_web_mcqs_76658_337172634
university of Gujrat, pakistan
IDC 2010 Conference Presentation
IDC 2010 Conference Presentation
Gonçalo Amador
Proga 090525
Proga 090525
Atsushi Tadokoro
Was ist angesagt?
(10)
CakePHP in iPhone App
CakePHP in iPhone App
31csharp
31csharp
cocos2d for i Phoneの紹介
cocos2d for i Phoneの紹介
Georgiy Shur: Bring onboarding to life
Georgiy Shur: Bring onboarding to life
Scaling compression2
Scaling compression2
Snow
Snow
Better performance through Superscalarity
Better performance through Superscalarity
11173 rabia zafar_web_mcqs_76658_337172634
11173 rabia zafar_web_mcqs_76658_337172634
IDC 2010 Conference Presentation
IDC 2010 Conference Presentation
Proga 090525
Proga 090525
Ähnlich wie iPhone/iPad开发讲座 第五讲 定制视图和多点触摸
CocoaHeads Toulouse - Guillaume Cerquant - UIView
CocoaHeads Toulouse - Guillaume Cerquant - UIView
CocoaHeads France
iOS 7 SDK特訓班
iOS 7 SDK特訓班
彼得潘 Pan
I phone勉強会 (2011.11.23)
I phone勉強会 (2011.11.23)
Katsumi Kishikawa
Synchronizing without internet - Multipeer Connectivity (iOS)
Synchronizing without internet - Multipeer Connectivity (iOS)
Jorge Maroto
Core animation
Core animation
Weizhong Yang
Core Image: The Most Fun API You're Not Using, CocoaConf Atlanta, December 2014
Core Image: The Most Fun API You're Not Using, CocoaConf Atlanta, December 2014
Chris Adamson
Cocos2d 소개 - Korea Linux Forum 2014
Cocos2d 소개 - Korea Linux Forum 2014
Changwon National University
004
004
Stronger Shen
iOS Training Session-3
iOS Training Session-3
Hussain Behestee
Desenvolvimento iOS - Aula 4
Desenvolvimento iOS - Aula 4
Saulo Arruda
Style vs. Content and Clean Theming in iOS
Style vs. Content and Clean Theming in iOS
Keith Norman
203 Is It Real or Is It Virtual? Augmented Reality on the iPhone
203 Is It Real or Is It Virtual? Augmented Reality on the iPhone
jonmarimba
Getting Started with CoreGraphics
Getting Started with CoreGraphics
Xamarin
Yahoo Open Source - The Tour & Mystery of AppDevKit (MOPCON 2016)
Yahoo Open Source - The Tour & Mystery of AppDevKit (MOPCON 2016)
anistar sung
I os 04
I os 04
信嘉 陳
Introduction to the Qt Quick Scene Graph
Introduction to the Qt Quick Scene Graph
ICS
Leaving Interface Builder Behind
Leaving Interface Builder Behind
John Wilker
GCD in Action
GCD in Action
Nigel Barber
Keeping Track of Moving Things: MapKit and CoreLocation in Depth
Keeping Track of Moving Things: MapKit and CoreLocation in Depth
Geoffrey Goetz
The not so short
The not so short
AXM
Ähnlich wie iPhone/iPad开发讲座 第五讲 定制视图和多点触摸
(20)
CocoaHeads Toulouse - Guillaume Cerquant - UIView
CocoaHeads Toulouse - Guillaume Cerquant - UIView
iOS 7 SDK特訓班
iOS 7 SDK特訓班
I phone勉強会 (2011.11.23)
I phone勉強会 (2011.11.23)
Synchronizing without internet - Multipeer Connectivity (iOS)
Synchronizing without internet - Multipeer Connectivity (iOS)
Core animation
Core animation
Core Image: The Most Fun API You're Not Using, CocoaConf Atlanta, December 2014
Core Image: The Most Fun API You're Not Using, CocoaConf Atlanta, December 2014
Cocos2d 소개 - Korea Linux Forum 2014
Cocos2d 소개 - Korea Linux Forum 2014
004
004
iOS Training Session-3
iOS Training Session-3
Desenvolvimento iOS - Aula 4
Desenvolvimento iOS - Aula 4
Style vs. Content and Clean Theming in iOS
Style vs. Content and Clean Theming in iOS
203 Is It Real or Is It Virtual? Augmented Reality on the iPhone
203 Is It Real or Is It Virtual? Augmented Reality on the iPhone
Getting Started with CoreGraphics
Getting Started with CoreGraphics
Yahoo Open Source - The Tour & Mystery of AppDevKit (MOPCON 2016)
Yahoo Open Source - The Tour & Mystery of AppDevKit (MOPCON 2016)
I os 04
I os 04
Introduction to the Qt Quick Scene Graph
Introduction to the Qt Quick Scene Graph
Leaving Interface Builder Behind
Leaving Interface Builder Behind
GCD in Action
GCD in Action
Keeping Track of Moving Things: MapKit and CoreLocation in Depth
Keeping Track of Moving Things: MapKit and CoreLocation in Depth
The not so short
The not so short
Mehr von Hao Peiqiang
移动互联网和App的未来
移动互联网和App的未来
Hao Peiqiang
搜索引擎友好的网站设计
搜索引擎友好的网站设计
Hao Peiqiang
第二讲 iPhone产品战略和用户界面设计
第二讲 iPhone产品战略和用户界面设计
Hao Peiqiang
iOS平台形势和互联网企业如何应对移动浪潮 topgeek版
iOS平台形势和互联网企业如何应对移动浪潮 topgeek版
Hao Peiqiang
iOS平台发展形势分析 sd2.0版本
iOS平台发展形势分析 sd2.0版本
Hao Peiqiang
iPhone/iPad开发讲座 第六讲 多点触摸和手势识别
iPhone/iPad开发讲座 第六讲 多点触摸和手势识别
Hao Peiqiang
iPhone/iPad开发讲座 第四讲 网络通讯和Xml处理
iPhone/iPad开发讲座 第四讲 网络通讯和Xml处理
Hao Peiqiang
iPhone/iPad开发讲座 第三讲 界面和编程基础
iPhone/iPad开发讲座 第三讲 界面和编程基础
Hao Peiqiang
iPhone/iPad开发讲座 第二讲 iPhone用户界面设计
iPhone/iPad开发讲座 第二讲 iPhone用户界面设计
Hao Peiqiang
iPhone/iPad开发讲座 第一讲 Ios开发简介
iPhone/iPad开发讲座 第一讲 Ios开发简介
Hao Peiqiang
雪计算和twitter的信息传播方式
雪计算和twitter的信息传播方式
Hao Peiqiang
搜索引擎与搜索引擎营销
搜索引擎与搜索引擎营销
Hao Peiqiang
雪计算
雪计算
Hao Peiqiang
Snow Computing
Snow Computing
Hao Peiqiang
Iphone Dev
Iphone Dev
Hao Peiqiang
iPhone Os开发简介
iPhone Os开发简介
Hao Peiqiang
Mehr von Hao Peiqiang
(16)
移动互联网和App的未来
移动互联网和App的未来
搜索引擎友好的网站设计
搜索引擎友好的网站设计
第二讲 iPhone产品战略和用户界面设计
第二讲 iPhone产品战略和用户界面设计
iOS平台形势和互联网企业如何应对移动浪潮 topgeek版
iOS平台形势和互联网企业如何应对移动浪潮 topgeek版
iOS平台发展形势分析 sd2.0版本
iOS平台发展形势分析 sd2.0版本
iPhone/iPad开发讲座 第六讲 多点触摸和手势识别
iPhone/iPad开发讲座 第六讲 多点触摸和手势识别
iPhone/iPad开发讲座 第四讲 网络通讯和Xml处理
iPhone/iPad开发讲座 第四讲 网络通讯和Xml处理
iPhone/iPad开发讲座 第三讲 界面和编程基础
iPhone/iPad开发讲座 第三讲 界面和编程基础
iPhone/iPad开发讲座 第二讲 iPhone用户界面设计
iPhone/iPad开发讲座 第二讲 iPhone用户界面设计
iPhone/iPad开发讲座 第一讲 Ios开发简介
iPhone/iPad开发讲座 第一讲 Ios开发简介
雪计算和twitter的信息传播方式
雪计算和twitter的信息传播方式
搜索引擎与搜索引擎营销
搜索引擎与搜索引擎营销
雪计算
雪计算
Snow Computing
Snow Computing
Iphone Dev
Iphone Dev
iPhone Os开发简介
iPhone Os开发简介
iPhone/iPad开发讲座 第五讲 定制视图和多点触摸
1.
iPhone/iPad
Blog: http://tiny4.org/blog Twitter: @Tinyfool Mail/Gtalk: tinyfool@gmail.com
2.
UIView • • •
UIResponder • • view
3.
View •
Interface Builder view UIView - (void)addSubview:(UIView *)view; - (void)removeFromSuperview; • view - (void)insertSubview:(UIView *)view atIndex:(int)index; - (void)insertSubview:(UIView *)view belowSubview:(UIView *)view; - (void)insertSubview:(UIView *)view aboveSubview:(UIView *)view; - (void)exchangeSubviewAtIndex:(int)index withSubviewAtIndex: (int)otherIndex;
4.
View • CGPoint •
{x,y} • CGSize • {width,height} • CGRect
5.
CGPoint,CGSize,CGRect
6.
CGPoint,CGSize,CGRect
7.
UIView • •y
8.
frame bounds
9.
•
UIView • - (void)drawRect:(CGRect)rect; • - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event; - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event; - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event; - (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;
10.
11.
- (void)drawRect:(CGRect)rect •
-[UIView drawRect:] • backgroundColor • drawRect: • rect • drawRect:
12.
•
drawRect: ! • • View - (void)setNeedsDisplay; • - (void)setNumberOfSides:(int)sides { numberOfSides = sides; [polygonView setNeedsDisplay];
13.
CoreGraphics
Quartz 2D • UIKit UIRectFill(CGRect rect); UIRectFrame(CGRect rect); • CoreGraphics: API • CG C Base API Objective-C • CG Quartz 2D
14.
• •
PDF • drawRect: • path line • drawRect: (CGContextRef)UIGraphicsGetCurrentContext(void); • CG • drawRect:
15.
CG •
CG UIKit • UIColor *redColor = [UIColor redColor]; [redColor set]; • UIFont *font = [UIFont systemFontOfSize:14.0]; [myLabel setFont:font];
16.
•
-[NSString drawAtPoint:(CGPoint)point withFont: (UIFont *)font]
17.
UIImage •
UIImage: • • +[UIImage imageNamed:(NSString *)name] • • -[UIImage initWithContentsOfFile: (NSString *)path] •
18.
•
- [UIImage drawAtPoint:(CGPoint)point] • - [UIImage drawInRect:(CGRect)rect] • - [UIImage drawAsPatternInRect:(CGRect)rect]
19.
• • •
• CGGraphicsContext • •
20.
21.
•
NSData *UIImagePNGRepresentation (UIImage * image); • NSData *UIImageJPGRepresentation (UIImage * image);
22.
• •
UITouch UIEvent • •
23.
24.
UITouch @property(nonatomic,readonly) NSTimeInterval timestamp; @property(nonatomic,readonly) UITouchPhase
phase; @property(nonatomic,readonly) NSUInteger tapCount; @property(nonatomic,readonly,retain) UIWindow *window; @property(nonatomic,readonly,retain) UIView *view; - (CGPoint)locationInView:(UIView *)view; - (CGPoint)previousLocationInView:(UIView *)view;
25.
UIEvent
touch @property(nonatomic,readonly) NSTimeInterval timestamp; - (NSSet *)allTouches; - (NSSet *)touchesForWindow:(UIWindow *)window; - (NSSet *)touchesForView:(UIView *)view;
26.
UIEvent - (NSSet *)allTouches; -
(NSSet *)touchesForWindow:(UIWindow *)window; - (NSSet *)touchesForView:(UIView *)view;
27.
UIResponder - (void)touchesBegan:(NSSet *)touches
withEvent:(UIEvent *)event; - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event; - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event; - (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event;
28.
UIResponder
29.
touchesBegan:withEvent:
30.
touchesMoved:withEvent:
31.
touchesEnded:withEvent:
32.
touchesCancelled touchesCancelled:(NSSet*)touches withEvent:(UIEvent*)event
Hinweis der Redaktion
Jetzt herunterladen