Enviar búsqueda
Cargar
I osアプリのmvcモデル
•
0 recomendaciones
•
3,046 vistas
G
god_bird
Seguir
Denunciar
Compartir
Denunciar
Compartir
1 de 13
Descargar ahora
Descargar para leer sin conexión
Recomendados
ブラック企業から学ぶMVCモデル
ブラック企業から学ぶMVCモデル
Yuta Hiroto
MvcのFatモデルに立ち向かう
MvcのFatモデルに立ち向かう
Shun Hikita
MVC の Model を考える
MVC の Model を考える
tomo_masakura
Validações no Ruby on Rails
Validações no Ruby on Rails
Eduardo Mendes
MVC 01
MVC 01
Satoshi Shoda
やはりお前らのMVCは間違っている
やはりお前らのMVCは間違っている
Koichi Tanaka
MVC 02
MVC 02
Satoshi Shoda
MVC 03
MVC 03
Satoshi Shoda
Recomendados
ブラック企業から学ぶMVCモデル
ブラック企業から学ぶMVCモデル
Yuta Hiroto
MvcのFatモデルに立ち向かう
MvcのFatモデルに立ち向かう
Shun Hikita
MVC の Model を考える
MVC の Model を考える
tomo_masakura
Validações no Ruby on Rails
Validações no Ruby on Rails
Eduardo Mendes
MVC 01
MVC 01
Satoshi Shoda
やはりお前らのMVCは間違っている
やはりお前らのMVCは間違っている
Koichi Tanaka
MVC 02
MVC 02
Satoshi Shoda
MVC 03
MVC 03
Satoshi Shoda
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Más contenido relacionado
Destacado
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Destacado
(20)
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
How to have difficult conversations
How to have difficult conversations
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The six step guide to practical project management
The six step guide to practical project management
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
I osアプリのmvcモデル
1.
iOSアプリのMVCモデル 13年7月3日水曜日
2.
MVCとは • Model - Viewを構成する情報を保持する •
View - Modelのデータを表示する - ユーザから操作を受ける • Controller - Modelに情報の更新を命令する - ViewにModelの情報を送り、Viewを通じて ユーザからの操作を受ける ✦プログラムを以下三つのカテゴリに分けてクラ ス設計するデザインパターン 13年7月3日水曜日
3.
iOSアプリ上のMVC図 テキストテキスト④ 1. ユーザの操作をViewからControllerが受け取る 2. ControllerがModelに渡す 3.
Modelで処理を行って結果をControllerに返す 4. Controllerが処理結果をViewに表示 ① ② ③ 13年7月3日水曜日
4.
どんなメリットがある? 13年7月3日水曜日
5.
メリット • 表示ロジック(View)と計算やデータ取得処 理(Model)を分離させる事で、各ロジックの 再利用性が高まる。 • クラスを処理系統で分割する事でソースの可 読性が高まる(見やすい) •
etc... 13年7月3日水曜日
6.
入門書にありがちな パターン 13年7月3日水曜日
7.
すべての処理が ViewControllerに書か れている ※ 画面ごとに全く異なるデータを扱うなら ありですが、業務ではちょっと・・・ 13年7月3日水曜日
8.
では具体的にどう書くか 13年7月3日水曜日
9.
Model例 JSONやXMLなどの構造化されたデータを 扱う場合、Controllerがデータを扱い易い ように設計する。 - 情報取得のインターフェースの作成 - Entityクラスの作成 13年7月3日水曜日
10.
情報取得のインターフェースの作成 • Controllerからの処理命令を簡単にする ため、インタフェースとしての情報更 新メソッド、情報返却メソッドを作成 する。 • ローカルの情報へアクセスする処理 や、HTTPクライアントでリモートから 情報を取得するような実装 13年7月3日水曜日
11.
Entityクラスによる情報管理 • こんなJSONがあった場合 [ { "id" :
"1FZ3P4ACUWBBC-2010061010321", "created_at" : "Thu Jun 10 01:32:13 +0000 2010", "text" : "つぶやきの本文", "user" : { "id" : "1FZ3P4ACUWBB", "screen_name" : "Becky", "profile_image_url" : "http://profile.img.xxxxxx.jpg", "url" : "http://ssteaete/show_friend.pl?uid=1FZ3P4ACUWBB" }, "reply_count" : "3", "favorite_count" : "5", "favorited" : true }, ・・・ ] 13年7月3日水曜日
12.
ベタなNSArrayで管理せずに専用のDictionaryオブ ジェクトクラスを作る #import <Foundation/Foundation.h> @interface SAMUserEntity
: NSObject @property (nonatomic, strong) NSString *profileImageURL; @property (nonatomic, strong) NSString *URL; @property (nonatomic, strong) NSString *userID; @property (nonatomic, strong) NSString *screenName; +(MixiUserEntity *)userEntitiWithDict:(NSDictionary *)dict; @end @interface SAMVoiceEntity : NSObject @property (nonatomic, strong) NSString *voiceID; @property (nonatomic, strong) NSString *createdAt; @property (nonatomic, strong) NSString *text; @property (nonatomic, assign) NSInteger replyCount; @property (nonatomic, assign) NSInteger favoriteCount; @property (nonatomic, assign) BOOL favorited; @property (nonatomic, strong) SAMUserEntity *userEntity; +(MixiVoiceEntity *)voiceEntitiWithDict:(NSDictionary *)dict; @end 13年7月3日水曜日
13.
すいません力尽きま した。。。 13年7月3日水曜日
Descargar ahora