Learning iOS UI Development Implement Complex iOS User Interfaces With Ease Using Swift 1st Edition D'Areglia Ebook All Chapters PDF
Learning iOS UI Development Implement Complex iOS User Interfaces With Ease Using Swift 1st Edition D'Areglia Ebook All Chapters PDF
https://ebookfinal.com/download/test-driven-ios-development-with-
swift-4-third-edition-dominik-hauser/
ebookfinal.com
https://ebookfinal.com/download/ios-8-swift-programming-cookbook-
solutions-examples-for-ios-apps-1st-edition-nahavandipoor/
ebookfinal.com
Learning Swift Building Apps for macOS iOS and Beyond 3rd
Edition Jonathon Manning
https://ebookfinal.com/download/learning-swift-building-apps-for-
macos-ios-and-beyond-3rd-edition-jonathon-manning/
ebookfinal.com
https://ebookfinal.com/download/beginning-ios-7-development-exploring-
the-ios-sdk-1st-edition-jack-nutting/
ebookfinal.com
Core Data by Tutorials iOS 8 and Swift Edition Aaron
Douglas
https://ebookfinal.com/download/core-data-by-tutorials-ios-8-and-
swift-edition-aaron-douglas/
ebookfinal.com
https://ebookfinal.com/download/test-driven-ios-development-1st-
edition-graham-lee/
ebookfinal.com
https://ebookfinal.com/download/beginning-ios-5-application-
development-1st-edition-wei-meng-lee/
ebookfinal.com
https://ebookfinal.com/download/learn-sprite-kit-for-ios-game-
development-1st-edition-leland-long/
ebookfinal.com
Yari D'areglia
BIRMINGHAM - MUMBAI
Learning iOS UI Development
All rights reserved. No part of this book may be reproduced, stored in a retrieval
system, or transmitted in any form or by any means, without the prior written
permission of the publisher, except in the case of brief quotations embedded in
critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy
of the information presented. However, the information contained in this book is
sold without warranty, either express or implied. Neither the author, nor Packt
Publishing, and its dealers and distributors will be held liable for any damages
caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
ISBN 978-1-78528-819-7
www.packtpub.com
Credits
Reviewers Proofreader
Nicola Armellini Safis Editing
Christian Stehno
Indexer
Commissioning Editor Monica Ajmera Mehta
Nadeem N. Bagban
Graphics
Acquisition Editor Jason Monteiro
Manish Nainani
Production Coordinator
Content Development Editor Nilesh Mohite
Rashmi Suvarna
Cover Work
Technical Editor Nilesh Mohite
Humera Shaikh
Copy Editor
Shruti Iyer
About the Author
Yari, together with Nicola Armellini, founded Jumpzero, a company based in Italy
that released countless mobile, desktop, and web applications.
I'd like to thank Nicola Armellini for taking the time to review this
book and teaching me countless things about my work and life.
Thanks, brother!
Special thanks go to my future wife, Lorena. She was extremely
supportive and accepted all my "I'm busy, honey; I need to finish this
chapter..." with a gentle smile. You are awesome; I love you.
Thanks, mom, your ragù and your words were both of vital
importance during the writing of the last few chapters. You're a
strong woman, and I'm proud to be your son.
Many thanks and appreciation go to everyone who contributed to
the production of this book: Manish, Ritika, Rashmi, and Humera.
Thank you for being so kind and professional.
Last but not least, I would like to thank my greatest friends, Simo,
Luke, and Stefano (Panzer). Our next role-playing session is on its way.
About the Reviewers
Nicola Armellini is a designer from Italy who constantly crosses the boundary
between technology and communication.
First approaching the industry through the video game medium, he partnered
with Yari D'Areglia and founded Jumpzero, specializing in the user experience
and interface design of OS X and iOS applications. At the same time, Nicola helped
grow the audience of Yari's Think & Build blog by editing and reviewing his in-depth
tutorial articles.
A fan of redistributing knowledge and making it accessible, he taught his craft and
its implications in terms of marketing and communication as a lecturer at European
Institute of Design in Milan.
As a side project slowly turned into his main focus, Nicola started fiddling with virtual
reality and exploring new ways of interacting with machines and CG environments,
questioning the status quo of how information is presented and manipulated.
Christian Stehno studied computer science and got his diploma from the
University of Oldenburg in 2000. Since then, he has worked on different topics in
computer science. As researcher on theoretical computer science at University,
Christian switched to embedded system design at a research institute later on. In
2010, he started his own company, CoSynth, which develops embedded systems and
intelligent cameras for industrial automation. In addition, Christian is a long-time
member of the Irrlicht 3D Engine developer team.
www.PacktPub.com
Did you know that Packt offers eBook versions of every book published, with PDF
and ePub files available? You can upgrade to the eBook version at www.PacktPub.
com and as a print book customer, you are entitled to a discount on the eBook copy.
Get in touch with us at [email protected] for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign
up for a range of free newsletters and receive exclusive discounts and offers on Packt
books and eBooks.
TM
https://www2.packtpub.com/books/subscription/packtlib
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital
book library. Here, you can search, access, and read Packt's entire library of books.
Why subscribe?
• Fully searchable across every book published by Packt
• Copy and paste, print, and bookmark content
• On demand and accessible via a web browser
[i]
Table of Contents
[ ii ]
Table of Contents
[ iii ]
Table of Contents
[ iv ]
Table of Contents
[v]
Preface
Through this comprehensive one-stop guide, you'll get to grips with the entire UIKit
framework and creating modern user interfaces for your iOS devices using Swift.
Starting with an overview of the iOS drawing system and available tools, you will
learn how to use these technologies to create adaptable layouts and custom elements
for your applications. You'll then be introduced to other topics such as animation
and code drawing with core graphics, which will give you all the knowledge you
need to create astonishing user interfaces. By the time you reach the end of this book,
you will have a solid foundation in iOS user interface development and have gained
a valuable insight into the process of building firm and complex UIs.
Chapter 3, Interface Builder, XIB, and Storyboard, gives an overview of the Xcode tools
used to set up and build UIs.
Chapter 4, Auto Layout, is the key to understanding how Auto Layout works. It
describes in detail how to create dynamic layouts.
Chapter 5, Adaptive User Interfaces, discusses a very important topic: how to improve
user experience and provide interfaces that can adapt to different orientations, screen
sizes, and user preferences using the latest advancements introduced with iOS 8 and 9.
[ vii ]
Preface
Chapter 7, UI Interactions – Touches and Gestures, analyzes the main way users
interact with UIs—through touch. It answers questions such as "how is this
information passed from the screen to the views?" and "how can we build an
engaging UI using gestures?"
Chapter 8, How to Build Custom Controls, explains how to build custom controls after
learning how these controls work in the previous chapters.
Chapter 9, Introduction to Core Graphics, is a final quick overview of the core graphics
(Quartz 2D) framework to show you how to perform custom drawings with iOS.
Conventions
In this book, you will find a number of text styles that distinguish between different
kinds of information. Here are some examples of these styles and an explanation of
their meaning.
Code words in text, database table names, folder names, filenames, file extensions,
pathnames, dummy URLs, user input, and Twitter handles are shown as follows:
"The properties that define the view geometry are frame, bounds, and center and
they are configured using the geometry structures you just saw."
[ viii ]
Preface
// Define a size
let size = CGSize(width: 20, height: 10)
When we wish to draw your attention to a particular part of a code block, the
relevant lines or items are set in bold:
enum UIUserInterfaceSizeClass : Int {
case Unspecified
case Compact
case Regular
}
New terms and important words are shown in bold. Words that you see on the
screen, for example, in menus or dialog boxes, appear in the text like this: "Create a
new asset by clicking on the + symbol and selecting New Image Asset."
Reader feedback
Feedback from our readers is always welcome. Let us know what you think about
this book—what you liked or disliked. Reader feedback is important for us as it helps
us develop titles that you will really get the most out of.
[ ix ]
Preface
If there is a topic that you have expertise in and you are interested in either writing
or contributing to a book, see our author guide at www.packtpub.com/authors.
Customer support
Now that you are the proud owner of a Packt book, we have a number of things to
help you to get the most from your purchase.
Errata
Although we have taken every care to ensure the accuracy of our content, mistakes
do happen. If you find a mistake in one of our books—maybe a mistake in the text or
the code—we would be grateful if you could report this to us. By doing so, you can
save other readers from frustration and help us improve subsequent versions of this
book. If you find any errata, please report them by visiting http://www.packtpub.
com/submit-errata, selecting your book, clicking on the Errata Submission Form
link, and entering the details of your errata. Once your errata are verified, your
submission will be accepted and the errata will be uploaded to our website or added
to any list of existing errata under the Errata section of that title.
[x]
Preface
Piracy
Piracy of copyrighted material on the Internet is an ongoing problem across all
media. At Packt, we take the protection of our copyright and licenses very seriously.
If you come across any illegal copies of our works in any form on the Internet, please
provide us with the location address or website name immediately so that we can
pursue a remedy.
We appreciate your help in protecting our authors and our ability to bring you
valuable content.
Questions
If you have a problem with any aspect of this book, you can contact us at
[email protected], and we will do our best to address the problem.
[ xi ]
UI Fundamentals
Creating a successful application is not only a matter of writing efficient and reliable
code. User interfaces and experience are relevant topics that we have to seriously
take into account during the development process. If you want to be able to create
appealing and well-structured layouts, you need to become familiar with the main
building blocks of user interfaces.
In this chapter, we will explore the basics of iOS UI development, which you will use
and improve upon for the rest of the book and, hopefully, for the rest of your career.
We will start from the fundamental actors of a user interface, such as windows and
views; then, we will connect the dots showing how all these components work together
by creating a UI hierarchy and how the system interacts with all these elements.
Let's start our journey from the element at the top of the stack: the window.
Exploring windows
A window is an instance of the UIWindow class, and it is the topmost element of any
application UI's hierarchy. It doesn't draw any visual object and can be considered as
a blank container for the UI elements called views. An application must have at least
one window that normally fills the entire screen.
One of the main roles of the window is to deliver touches to the underlying views. You'll
read more about this topic in Chapter 7, UI Interactions – Touches and Gestures. For now,
it suffices to say that a window is the first entry point for a touch event. The touch is
then pushed down through the view hierarchy until it reaches the right view.
[1]
UI Fundamentals
The easiest and most reliable way to send content to a window is by configuring
its rootViewController property with a UIViewController instance. The view
controller's view will automatically be set as the contents of the window and
presented to the user.
This solution simplifies the window hierarchy, ensuring that contents are all children
of the same root. Thanks to this solution, changing the contents of a window is just a
matter of updating its root view controller.
While you'll learn more about view controllers and views in the next paragraphs,
this image should clarify how all these objects cooperate to present their contents to
the user:
rootViewController
view
The view controller is initialized and set as the root view controller of the window.
Finally, the window presents the current root view controller's view.
Configuring windows
You rarely need to set up a window manually. In most cases, Xcode defines all
the needed information for you. Let's take a look at the entire process to better
understand what goes on under the hood.
[2]
Chapter 1
When you create a new Xcode project using the wizard, a Storyboard is created
for you. If you check the info.plist file, you'll see that the Main storyboard
filebase name key reports the name of the Storyboard by default as Main:
This key is really important as it tells Xcode that you want to start the application
from the Storyboard or, more precisely, from the Storyboard initial view controller
(the one indicated by the grey arrow inside the Storyboard working area).
At this point, a UIWindow instance is created and associated with the window
property of the AppDelegate class. This property will be a handy reference to the
main window for the entire life cycle of the application.
Since windows are invisible by default, there is one last step required to show the
content to the user. After the application:didFinishLaunchingWithOptions
function finishes its execution, makeKeyAndVisible is called for the window, which
now loads its interface from rootViewController and finally displays it contents.
@UIApplicationMain
Info.plist
RUST
App Delegate
Main Storyboard
Initial rootViewController
.window
view controller
AFTER makeKeyAndVisible()
applicationDidFinishLaunching:withOptions:
[3]
UI Fundamentals
The same result can be obtained programmatically. If you remove the Main
storyboard filebase name key from the info.plist file, Xcode doesn't have any
information on how to set up a valid window. The application:didiFinishLau
nchingWithOptions function is the right place to manually instantiate it. You can
execute the following:
func application(application: UIApplication,
didFinishLaunchingWithOptions
launchOptions: [NSObject: AnyObject]?) -> Bool {
return true
}
As you can note, this code retraces the same steps that we saw previously. The only
noteworthy thing is the way the window frame is defined: UIScreen is a class that
represents a screen device. In the previous block of code, the mainScreen function
is used to get the current device bounds and build a window that is the same size as
the screen.
[4]
Chapter 1
UIView is the base class used to instantiate generic views and it can be subclassed
to create custom views. Almost all the UI elements that you will use in your
applications are inherited from this class, and in the next chapter, you'll learn a lot
about some of the elements provided by Apple within the UIKit framework.
A UIView instance has properties that you can use to change an aspect of the view.
For example, the backgroundColor property accepts UIColor to define a tint for the
view's background. The background of a view is transparent by default, and as you'll
see later in this chapter, some views can seep through other views.
The alpha property is useful if your view and all the elements it contains need to
be transparent. It accepts a value from 0.0 to 1.0, and depending on your settings,
it gives the view a "see-through" effect. With the help of this property, you can hide
or unhide a view using some interesting animations, as you will learn in Chapter 6,
Layers and Core Animation.
Another way to change the visibility of a view is using the hidden property, which
can be set to true or false.
It's important to note that when you hide a view using the hidden or alpha
properties, you are not removing the view from the hierarchy and memory; the
view can, in fact, still be reached, but the interaction with the user is automatically
disabled until the view is visible again. This is a neat trick to temporarily remove a
view from the screen, thus preventing any unintended interaction.
Sometimes, you might need to disable a view even if the drawing goes on (for
example, you may want to be sure that the UI interactions are disabled while loading
some external data). In this case, you may find the userInteractionEnabled
property useful; setting this property to false tells the view to ignore user events.
[5]
UI Fundamentals
The code needed to initialize these structures is straightforward, and there are a lot
of functionalities provided by Apple that simplify our work with these structures.
The following code shows how to create the Rect, Size, and Point instances:
// Define a point
let point = CGPoint(x: 20, y: 10)
// Define a size
let size = CGSize(width: 20, height: 10)
The properties that define the view geometry are frame, bounds, and center and
they are configured using the geometry structures you just saw.
[6]
Chapter 1
At this point, we might conclude that frame and bounds are similar; however, this is
not always true. Take a look at the following images to better understand how they
work together to define the view geometry:
In this case, frame and bounds have the same size, but the position values are
different. Take a look at this image:
This indicates that after a rotation, the same view maintains the bounds, while the
frame changes significantly, adapting its size in order to contain the rotated view.
[7]
UI Fundamentals
Every instance of UIView (or its subclass) can be connected with other views in a
parent-child relationship. The parent view is called superview, while the children
are called subviews. A view can only have one superview, but it can contain more
than one subview:
[8]
Chapter 1
Thanks to the dedicated UIView properties and functions, you can easily inspect
a view hierarchy and navigate from a root view down through to the last view of
the hierarchy.
A view can access its parent from the superview property, as follows:
let parentView = view.superview
The property returns a single UIView reference or nil if the view is not added to the
hierarchy yet.
In a similar way, the subviews property returns an array of UIView instances that are
the children of the view. Take a look at this code:
let children = view.subviews
The addSubview: function pushes a view as the child of the caller, as follows:
containerView.addSubview(childView)
Views that are added as subviews of the same view are sibling. Sibling subviews are
assigned to an index based on the order of insertion, which in turn corresponds to the
drawing order—the highest index is drawn at the front, while the lowest is drawn
behind the other sibling views. The addSubview: function assigns the first free index
to the view, determining its position, which is in front of all the other views with
lower indexes.
[9]
UI Fundamentals
This order can be manipulated using functions that specify the desired index in an
absolute or relative way:
containerView.insertSubview(childView, atIndex: 2)
With the same logic, a view can be placed into the hierarchy using another
view as a reference and specifying that the new view should be inserted above
(insertSubview:aboveSubview) or below (insertSubview:belowSubview) the
referenced view, as follows:
containerView.insertSubview(childView, aboveSubview: anotherView)
Removing a view from the hierarchy is extremely simple. If you have a reference
of the view that you want to remove, just call the removeFromSuperview function
for this view. Alternatively, if you want to remove all the subviews from the parent
view, just loop through the subviews and remove the views one by one. You can use
the following code for this:
for subview in container.subviews {
subview.removeFromSuperview()
}
When you remove a view from the hierarchy, you are removing
its subviews as well. If you haven't defined any reference to
the views, they are no longer retained in memory; therefore, all
chances to get access to the views are lost.
When you need to access a subview on the fly without saving a reference to it,
you can use the tag property. A UIView instance can be easily marked using an
integer, and you can obtain the view that corresponds to the same tag using the
viewWithTag; function. This function returns the view itself or the first subview
whose tag coincides with the requested tag.
[ 10 ]
Chapter 1
Another important note about subview visibility is related to the alpha property,
which, as we mentioned previously, defines the opacity of the view. Subviews
indirectly inherit the alpha value from their superviews, so the resulting opacity of
the subview depends both on their parent and their own alpha.
Hierarchy events
Changes on the hierarchy can be intercepted and managed through callbacks called
on the parent and child views.
[ 11 ]
UI Fundamentals
In the same way, the event can be intercepted by the superview overriding the
didAddSubview:subview function, as follows:
The view will be added to a hierarchy that has a window as root. At this point, the
didMoveToWindow event is called. After the event is triggered, the window property
of the view instance becomes a reference to the root window; this turns out to be a
handy way to check whether a view has reached the screen.
Remember that the only way to show a view on screen is through a window; so, if
the window property is nil, you can be sure that the view is not added to a window
hierarchy yet and that, for this reason, it won't be visible. Take a look at this code:
override func didMoveToWindow() {
println("I've been attached to this window hierarchy: \(window)")
}
[ 12 ]
Chapter 1
Hands-on code
In this section, you will practice some of the concepts that we just discussed by
writing a real application.
Open the Chapter 1 folder and launch the ...\Start\Chapter1 project. You'll
find a simple application structure that is the starting point for this exercise; the final
result is the ...\Completed\Chapter1 project.
[ 13 ]
UI Fundamentals
The base structure is really simple: an uppermost area with some controls (two
buttons and one segmented control) and a view (with a light gray background)
that we call a container:
Let's implement the createView function for the viewController.swift file first by
executing the following:
func createView(location:CGPoint){
let viewSize = CGSize(width: 50, height: 50)
let viewFrame = CGRect(origin: location, size: viewSize)
[ 14 ]
Chapter 1
if isCenterAligned {
childView.center = location
childView.backgroundColor = UIColor.blueColor()
}
}
The childView function is instantiated using a fixed size and the received location
as its origin. Then, it is simply attached to viewContainer using addSubview. If the
isCenterAligned property (which is handled by the segmented control) is true, the
center property of the view is moved to the received location.
The implementation of the clear function is straightforward, as you can note in the
following code:
@IBAction func clear(){
for subview in viewContainer.subviews{
subview.removeFromSuperview()
}
}
A second functionality can be added to this exercise. Push the "Deep" button on the
upper-left side of the screen, and debug the current hierarchy using the "capture
view hierarchy" function to see this great feature in action!
[ 15 ]
UI Fundamentals
This call basically tells the drawing system that the view content needs to be
updated with a new version. Later, during the next run loop, the system asks
the view to redraw. The main difference between the setNeedsDisplay: and
setNeedsDisplayInRect: functions is that the latter performs an optimization
using only a portion of the new view content.
In most cases, the redrawing process is managed for you by UIKit. If you need to
create your really custom UIView subclass, though, you probably want to draw
the contents of the view yourself. In this case, the drawRect: function is the place
where you will add the drawing functions. You'll learn more about custom drawing
in Chapters 6, Layers and Core Animation, and Chapter 9, Introduction to Core Graphics.
For now, it suffices to say that you should never call this function directly! When
the content of the view needs to be updated, just call setNeedDisplay: and the
drawRect: function will be executed by the system following the right procedure.
Here is a quick example of custom drawing with which we can create a UIView
subclass that draws a simple red ellipse at the center of the view:
import UIKit
}
}
This function uses UIBezierPath to define an oval shape that has a stroke and fill of
red and orange. This shape is finally drawn in the current Graphic Context, which can
be seen as an empty dashboard where you can design using code. You'll learn more
about Graphic Contexts in Chapter 9, Introduction to Core Graphics.
[ 16 ]
Chapter 1
During its life cycle, a view controller deals with important events related to its view.
Depending on your needs, you might find these events useful for the UI definition.
Function Description
loadView This is called when the view is created and assigned
to the view property. Depending on the setup of
the view controller, a view can be created using a
Storyboard or a .xib file. You will not override
this method unless you decide not to implement the
view using Interface Builder.
viewDidLoad This is called after the view is loaded. You will
override this to perform additional adjustments
to the user interface. You can set the text value
of labels with the data received from a previous
controller in the navigation hierarchy, for instance.
viewWillAppear This is called just before the view is added to
a view hierarchy. It is obviously called after
viewDidLoad, and it may be called more than once
during the view controller's life cycle.
viewDidAppear This is called after the view is added to a view
hierarchy. When this method is called, the view is
visible, and its window property is no longer nil.
viewWillLayoutSubviews This method is called when the view bounds
change or are initialized and the view is about to lay
out the subviews.
viewDidLayoutSubview When this method is called, the bounds are set
and the view has just called the layoutSubviews
method.
The appear-functions are called when the controller is presented for the first time
when a back button is pressed or a modal is closed, showing the underlying view
controller again. If you override these methods, you are required to call them on
super before executing your code.
[ 17 ]
Exploring the Variety of Random
Documents with Different Content
step which still retains some of the stateliness that once
distinguished the Princess Hermengarde.
When the visit is over, the stricken mother returns to her lonely
home, in a distant corner of the kingdom, where she lives under the
name of the Countess Walstadt, and bestows the larger part of her
revenues upon the poor. The only pleasure she permits herself is the
occasional society of Dorothea, who generally brings with her a little
girl named Hermengarde, with flaxen hair and big blue eyes, who
sits on the elder woman’s knee, and shyly accepts her caresses.
Only one name is never mentioned between the two friends, and
Dorothea will never know the entire truth concerning the fate of
Maximilian: whether he was in reality mad; or whether he was only
deemed so by the brief-lived swarm that infests God’s glorious
creation, and re-makes God in its own image, and sets up the
standards of its own blind limitations, and proclaims them to be the
laws of life.
“He has outsoared the shadow of their night—
Envy and calumny and hate and pain.”
THE END.
TRANSCRIBER’S NOTES:
Obvious typographical errors have been corrected.
Inconsistencies in hyphenation have been
standardized.
Archaic or variant spelling has been retained.
*** END OF THE PROJECT GUTENBERG EBOOK A CROWN OF
STRAW ***
Updated editions will replace the previous one—the old editions will
be renamed.
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the
terms of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if you
provide access to or distribute copies of a Project Gutenberg™ work
in a format other than “Plain Vanilla ASCII” or other format used in
the official version posted on the official Project Gutenberg™ website
(www.gutenberg.org), you must, at no additional cost, fee or
expense to the user, provide a copy, a means of exporting a copy, or
a means of obtaining a copy upon request, of the work in its original
“Plain Vanilla ASCII” or other form. Any alternate format must
include the full Project Gutenberg™ License as specified in
paragraph 1.E.1.
• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
1.F.4. Except for the limited right of replacement or refund set forth
in paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.
Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookfinal.com