没有合适的资源?快使用搜索试试~ 我知道了~
Beginning Xamarin Development for the Mac 无水印原版pdf
需积分: 3 8 下载量 86 浏览量
2017-12-28
23:16:26
上传
评论
收藏 6.33MB PDF 举报
温馨提示
试读
224页
Beginning Xamarin Development for the Mac 英文无水印原版pdf pdf所有页面使用FoxitReader、PDF-XChangeViewer、SumatraPDF和Firefox测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
资源推荐
资源详情
资源评论
Beginning Xamarin
Development for
the Mac
Create iOS, watchOS, and Apple tvOS apps
with Xamarin.iOS and Visual Studio for Mac
Dawid Borycki
Beginning Xamarin Development for the Mac
Dawid Borycki
Institute of Physical Chemistry,
Polish Academy of Sciences,
Kasprzaka 44/52, Warsaw, 01-224, Poland
ISBN-13 (pbk): 978-1-4842-3131-9 ISBN-13 (electronic): 978-1-4842-3132-6
https://doi.org/10.1007/978-1-4842-3132-6
Library of Congress Control Number: 2017963095
Copyright © 2018 by Dawid Borycki
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the
material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation,
broadcasting, reproduction on microfilms or in any other physical way, and transmission or information
storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now
known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with
every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an
editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are
not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to
proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication,
neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or
omissions that may be made. The publisher makes no warranty, express or implied, with respect to the
material contained herein.
Cover image designed by Freepik
Managing Director: Welmoed Spahr
Editorial Director: Todd Green
Acquisitions Editor: Joan Murray
Development Editor: Laura Berendson
Technical Reviewer: Chaim Krause
Coordinating Editor: Jill Balzano
Copy Editor: April Rondeau
Compositor: SPi Global
Indexer: SPi Global
Artist: SPi Global
Distributed to the book trade worldwide by Springer Science+Business Media New York,
233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505,
e-mail orders-ny@springer-sbm.com, or visit www.springeronline.com. Apress Media, LLC is a California
LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc).
SSBM Finance Inc is a Delaware corporation.
For information on translations, please e-mail rights@apress.com, or visit http://www.apress.com/
rights-permissions.
Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook versions
and licenses are also available for most titles. For more information, reference our Print and eBook Bulk
Sales web page at http://www.apress.com/bulk-sales.
Any source code or other supplementary material referenced by the author in this book is available to
readers on GitHub via the book’s product page, located at www.apress.com/9781484231319. For more
detailed information, please visit http://www.apress.com/source-code.
Printed on acid-free paper
is book is dedicated to my wife, Agnieszka, daughter, Susanna, and son, Xavier, with love.
We all have dreams. But in order to make dreams come into reality, it takes an awful
lot of determination, dedication, self-discipline, and eort.
—Jesse Owens
v
Contents
About the Author ����������������������������������������������������������������������������������������������������� ix
About the Technical Reviewer ��������������������������������������������������������������������������������� xi
Acknowledgments ������������������������������������������������������������������������������������������������� xiii
Introduction �������������������������������������������������������������������������������������������������������������xv
■Chapter 1: Fundamentals �������������������������������������������������������������������������������������� 1
Setting Up the Development Environment ����������������������������������������������������������������������� 2
Hello, World! App �������������������������������������������������������������������������������������������������������������� 8
Creating the Project ��������������������������������������������������������������������������������������������������������������������������������8
Storyboard Designer ����������������������������������������������������������������������������������������������������������������������������� 16
User Interface ��������������������������������������������������������������������������������������������������������������������������������������� 17
AlertViewController ������������������������������������������������������������������������������������������������������������������������������� 20
Actions �������������������������������������������������������������������������������������������������������������������������������������������������� 23
Action Sheet ����������������������������������������������������������������������������������������������������������������������������������������� 25
Summary ����������������������������������������������������������������������������������������������������������������������� 26
■Chapter 2: App Structure and Lifecycle ��������������������������������������������������������������� 27
An Entry Point ����������������������������������������������������������������������������������������������������������������� 27
AppDelegate ������������������������������������������������������������������������������������������������������������������� 29
View Lifecycle ���������������������������������������������������������������������������������������������������������������� 32
Information Property List ������������������������������������������������������������������������������������������������ 34
Entitlements Property List ���������������������������������������������������������������������������������������������� 35
Launch Storyboard �������������������������������������������������������������������������������������������������������� 36
Storyboards Under the Hood ������������������������������������������������������������������������������������������ 38
Model View Controller ���������������������������������������������������������������������������������������������������� 41
■ Contents
vi
Persisting Data ��������������������������������������������������������������������������������������������������������������� 42
Summary ������������������������������������������������������������������������������������������������������������������������ 46
■Chapter 3: Views ������������������������������������������������������������������������������������������������� 47
Basic Controls ���������������������������������������������������������������������������������������������������������������� 47
Tables ����������������������������������������������������������������������������������������������������������������������������� 50
Displaying Items ����������������������������������������������������������������������������������������������������������������������������������� 51
Selecting Items ������������������������������������������������������������������������������������������������������������������������������������� 55
Deleting Items �������������������������������������������������������������������������������������������������������������������������������������� 57
Web View ������������������������������������������������������������������������������������������������������������������������ 61
Google Geocoding API ��������������������������������������������������������������������������������������������������������������������������� 64
Invoking JavaScript Functions ��������������������������������������������������������������������������������������������������������������66
Map View and Geolocation ��������������������������������������������������������������������������������������������� 68
Auto-Layout �������������������������������������������������������������������������������������������������������������������� 73
Size Classes ������������������������������������������������������������������������������������������������������������������� 77
UI Thread ������������������������������������������������������������������������������������������������������������������������ 80
Summary ������������������������������������������������������������������������������������������������������������������������ 82
■Chapter 4: Navigation ������������������������������������������������������������������������������������������ 83
Tab Bar ��������������������������������������������������������������������������������������������������������������������������� 83
Pages ���������������������������������������������������������������������������������������������������������������������������������������������������� 90
Navigation Between View Controllers ��������������������������������������������������������������������������������������������������� 95
Editing a Segue ������������������������������������������������������������������������������������������������������������������������������������� 97
Unwind Segue �������������������������������������������������������������������������������������������������������������������������������������� 98
Preparing for Segues ����������������������������������������������������������������������������������������������������������������������������99
Summary ���������������������������������������������������������������������������������������������������������������������� 100
■Chapter 5: Touch ������������������������������������������������������������������������������������������������ 101
Touches and Gesture Recognizers ������������������������������������������������������������������������������� 101
Swipe and Long-Press Gesture Recognizers ��������������������������������������������������������������� 103
Manipulating Controls with Gestures ��������������������������������������������������������������������������� 107
剩余223页未读,继续阅读
资源评论
yinkaisheng-nj
- 粉丝: 763
- 资源: 6953
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功