Suche senden
Hochladen
俩控件
•
Als KEY, PDF herunterladen
•
0 gefällt mir
•
889 views
B
bang590
Folgen
自定义webview控件和navigationController控件介绍
Weniger lesen
Mehr lesen
Technologie
Kunst & Fotos
Melden
Teilen
Melden
Teilen
1 von 20
Jetzt herunterladen
Empfohlen
Web view
Web view
Sourabh Sahu
第一次用 Vue.js 就愛上 [改]
第一次用 Vue.js 就愛上 [改]
Kuro Hsu
Desenvolvimento iOS - Aula 4
Desenvolvimento iOS - Aula 4
Saulo Arruda
WordPress as the Backbone(.js)
WordPress as the Backbone(.js)
Beau Lebens
Vue, vue router, vuex
Vue, vue router, vuex
Samundra khatri
Famo.us - New generation of HTML5 Web Application Framework
Famo.us - New generation of HTML5 Web Application Framework
Hina Chen
Vue 淺談前端建置工具
Vue 淺談前端建置工具
andyyou
AngularJS Deep Dives (NYC GDG Apr 2013)
AngularJS Deep Dives (NYC GDG Apr 2013)
Nitya Narasimhan
Empfohlen
Web view
Web view
Sourabh Sahu
第一次用 Vue.js 就愛上 [改]
第一次用 Vue.js 就愛上 [改]
Kuro Hsu
Desenvolvimento iOS - Aula 4
Desenvolvimento iOS - Aula 4
Saulo Arruda
WordPress as the Backbone(.js)
WordPress as the Backbone(.js)
Beau Lebens
Vue, vue router, vuex
Vue, vue router, vuex
Samundra khatri
Famo.us - New generation of HTML5 Web Application Framework
Famo.us - New generation of HTML5 Web Application Framework
Hina Chen
Vue 淺談前端建置工具
Vue 淺談前端建置工具
andyyou
AngularJS Deep Dives (NYC GDG Apr 2013)
AngularJS Deep Dives (NYC GDG Apr 2013)
Nitya Narasimhan
Double Vision21
Double Vision21
guestd7e41f3
36 Holes
36 Holes
guestd7e41f3
ORU Outreach Support Brochure
ORU Outreach Support Brochure
Susan Vincent
无线代码库开发分享
无线代码库开发分享
bang590
Interviewing Skills
Interviewing Skills
Emily Roh
Block introduce
Block introduce
bang590
Minidemo iScreen
Minidemo iScreen
Lwillems
ORU Outreach Support Brochure
ORU Outreach Support Brochure
Susan Vincent
колчак седьмой континент
колчак седьмой континент
guestb9d4a8
Analytics Rksm.Ru 20091009 20091108 (Dashboard Report)
Analytics Rksm.Ru 20091009 20091108 (Dashboard Report)
danila00
block introduce
block introduce
bang590
Prevention of Heart attack, Stroke, Myocardial infarction.Our method
Prevention of Heart attack, Stroke, Myocardial infarction.Our method
Cardiovascularprevention
Los Simpsons
Los Simpsons
alba
колчак седьмой континент
колчак седьмой континент
guestb9d4a8
Joel Landis Net Portfolio
Joel Landis Net Portfolio
jlshare
Web 2.0 tools ppt 2
Web 2.0 tools ppt 2
EMask
36 Holes
36 Holes
guestd7e41f3
I os 11
I os 11
信嘉 陳
Formacion en movilidad: Conceptos de desarrollo en iOS (III)
Formacion en movilidad: Conceptos de desarrollo en iOS (III)
Mobivery
004
004
Stronger Shen
Creating Container View Controllers
Creating Container View Controllers
Bob McCune
iOS: View Controllers
iOS: View Controllers
Jussi Pohjolainen
Weitere ähnliche Inhalte
Andere mochten auch
Double Vision21
Double Vision21
guestd7e41f3
36 Holes
36 Holes
guestd7e41f3
ORU Outreach Support Brochure
ORU Outreach Support Brochure
Susan Vincent
无线代码库开发分享
无线代码库开发分享
bang590
Interviewing Skills
Interviewing Skills
Emily Roh
Block introduce
Block introduce
bang590
Minidemo iScreen
Minidemo iScreen
Lwillems
ORU Outreach Support Brochure
ORU Outreach Support Brochure
Susan Vincent
колчак седьмой континент
колчак седьмой континент
guestb9d4a8
Analytics Rksm.Ru 20091009 20091108 (Dashboard Report)
Analytics Rksm.Ru 20091009 20091108 (Dashboard Report)
danila00
block introduce
block introduce
bang590
Prevention of Heart attack, Stroke, Myocardial infarction.Our method
Prevention of Heart attack, Stroke, Myocardial infarction.Our method
Cardiovascularprevention
Los Simpsons
Los Simpsons
alba
колчак седьмой континент
колчак седьмой континент
guestb9d4a8
Joel Landis Net Portfolio
Joel Landis Net Portfolio
jlshare
Web 2.0 tools ppt 2
Web 2.0 tools ppt 2
EMask
36 Holes
36 Holes
guestd7e41f3
Andere mochten auch
(17)
Double Vision21
Double Vision21
36 Holes
36 Holes
ORU Outreach Support Brochure
ORU Outreach Support Brochure
无线代码库开发分享
无线代码库开发分享
Interviewing Skills
Interviewing Skills
Block introduce
Block introduce
Minidemo iScreen
Minidemo iScreen
ORU Outreach Support Brochure
ORU Outreach Support Brochure
колчак седьмой континент
колчак седьмой континент
Analytics Rksm.Ru 20091009 20091108 (Dashboard Report)
Analytics Rksm.Ru 20091009 20091108 (Dashboard Report)
block introduce
block introduce
Prevention of Heart attack, Stroke, Myocardial infarction.Our method
Prevention of Heart attack, Stroke, Myocardial infarction.Our method
Los Simpsons
Los Simpsons
колчак седьмой континент
колчак седьмой континент
Joel Landis Net Portfolio
Joel Landis Net Portfolio
Web 2.0 tools ppt 2
Web 2.0 tools ppt 2
36 Holes
36 Holes
Ähnlich wie 俩控件
I os 11
I os 11
信嘉 陳
Formacion en movilidad: Conceptos de desarrollo en iOS (III)
Formacion en movilidad: Conceptos de desarrollo en iOS (III)
Mobivery
004
004
Stronger Shen
Creating Container View Controllers
Creating Container View Controllers
Bob McCune
iOS: View Controllers
iOS: View Controllers
Jussi Pohjolainen
Leaving Interface Builder Behind
Leaving Interface Builder Behind
John Wilker
I os 03
I os 03
信嘉 陳
IOS APPs Revision
IOS APPs Revision
Muhammad Amin
아이폰강의(5) pdf
아이폰강의(5) pdf
sunwooindia
iOS
iOS
Scott Leberknight
SEE 2009: Improving Mobile Web Developer Experience
SEE 2009: Improving Mobile Web Developer Experience
Tasneem Sayeed
3D Touch: Preparando sua app para o futuro do iOS
3D Touch: Preparando sua app para o futuro do iOS
Rodrigo Borges
Conceitos e prática no desenvolvimento iOS - Mobile Conf 2014
Conceitos e prática no desenvolvimento iOS - Mobile Conf 2014
Fábio Pimentel
What's new in iOS9
What's new in iOS9
CocoaHeads France
MVVM with SwiftUI and Combine
MVVM with SwiftUI and Combine
Tai Lun Tseng
CocoaHeads Rennes #4 : la rotation sur iOS
CocoaHeads Rennes #4 : la rotation sur iOS
CocoaHeadsRNS
The WebView Role in Hybrid Applications
The WebView Role in Hybrid Applications
Haim Michael
December 2014 University iOS Meetup Talk
December 2014 University iOS Meetup Talk
jcgohlke
From mvc to viper
From mvc to viper
Krzysztof Profic
201104 iphone navigation-based apps
201104 iphone navigation-based apps
Javier Gonzalez-Sanchez
Ähnlich wie 俩控件
(20)
I os 11
I os 11
Formacion en movilidad: Conceptos de desarrollo en iOS (III)
Formacion en movilidad: Conceptos de desarrollo en iOS (III)
004
004
Creating Container View Controllers
Creating Container View Controllers
iOS: View Controllers
iOS: View Controllers
Leaving Interface Builder Behind
Leaving Interface Builder Behind
I os 03
I os 03
IOS APPs Revision
IOS APPs Revision
아이폰강의(5) pdf
아이폰강의(5) pdf
iOS
iOS
SEE 2009: Improving Mobile Web Developer Experience
SEE 2009: Improving Mobile Web Developer Experience
3D Touch: Preparando sua app para o futuro do iOS
3D Touch: Preparando sua app para o futuro do iOS
Conceitos e prática no desenvolvimento iOS - Mobile Conf 2014
Conceitos e prática no desenvolvimento iOS - Mobile Conf 2014
What's new in iOS9
What's new in iOS9
MVVM with SwiftUI and Combine
MVVM with SwiftUI and Combine
CocoaHeads Rennes #4 : la rotation sur iOS
CocoaHeads Rennes #4 : la rotation sur iOS
The WebView Role in Hybrid Applications
The WebView Role in Hybrid Applications
December 2014 University iOS Meetup Talk
December 2014 University iOS Meetup Talk
From mvc to viper
From mvc to viper
201104 iphone navigation-based apps
201104 iphone navigation-based apps
Kürzlich hochgeladen
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
BookNet Canada
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
UiPathCommunity
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
Stephanie Beckett
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
Lonnie McRorey
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
Dilum Bandara
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
LoriGlavin3
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
Fwdays
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
BookNet Canada
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
hariprasad279825
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
Lars Bell
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
Nathaniel Shimoni
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
Lorenzo Miniero
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
LoriGlavin3
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
Fwdays
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
LoriGlavin3
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
BookNet Canada
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
Rick Flair
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
2toLead Limited
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
LoriGlavin3
Kürzlich hochgeladen
(20)
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
俩控件
1.
俩控件 QMWebView QMNavigationController
bangchen
2.
QMWebView
3.
UIWebView UIWebViewScrollView
UIImageView * x UIWebBrowserView
4.
contentInset.top scrollView.contentSize
webView.frame contentInset.right contentInset.left contentInset.bottom
5.
接口 @property (nonatomic, retain)
UIView *footerView; @property (nonatomic, retain) UIView *headerView; - (void) headerViewHeightChange:(int)height animated:(BOOL)animated; - (void) footerViewHeightChange:(int)height; - (void) refresh;
6.
内部工作
7.
给webview设header/footer时计算contentInset
8.
header, footer高度改变的位置调整/动画
9.
webview
动/缩放时header/footer的位置
10.
contentSize改变时footer的位置
11.
困难
12.
iOS4 webview加载完成,自动跳到contentOffsetY=0
loading finish
13.
解决:加标志 - (void)loadRequest:(NSURLRequest *)request { !
_startLoad = YES; } - (void)scrollViewDidScroll:(UIScrollView *)scrollView { if (_startLoad && scrollView.contentOffset.y == 0) { _startLoad = NO; scrollView.contentOffset = CGPointMake(0, -scrollView.contentInset.top); return ; } }
14.
上一个内容的残影 [webview stringByEvaluatingJavaScriptFromString:
@"document.open();document.close()"]; or new webview
15.
莫名黑色块 opaque
= NO;
16.
QMNavigationController
17.
问题:自定义navigationItem.leftBarButtonItem无动画
18.
已有信息 - (UIViewController *)popViewControllerAnimated:(BOOL)animated -
(void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated @property(nonatomic,copy) NSArray *viewControllers; // The current view controller stack.
19.
在push与pop 个方法执行前加入动画逻辑 if (animated)
{ ! ! UIViewController *popController = [self.viewControllers lastObject]; ! ! UIViewController *pushController = [self.viewControllers objectAtIndex:self.viewControllers.count - 2]; ! ! [popController viewDisappearFromLeft]; ! ! [pushController viewAppearFromLeft]; ! } ! return [super popViewControllerAnimated:animated];
20.
END
Hinweis der Redaktion
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
Jetzt herunterladen