PDF Learn iOS 11 Programming with Swift 4 Craig Clayton download
PDF Learn iOS 11 Programming with Swift 4 Craig Clayton download
com
https://textbookfull.com/product/learn-ios-11-programming-
with-swift-4-craig-clayton/
OR CLICK BUTTON
DOWNLOAD NOW
https://textbookfull.com/product/ios-11-programming-fundamentals-with-
swift-swift-xcode-and-cocoa-basics-4th-edition-matt-neuburg/
textboxfull.com
https://textbookfull.com/product/ios-11-by-tutorials-learning-the-new-
ios-apis-with-swift-4-1st-edition-the-raywenderlich-tutorial-team/
textboxfull.com
https://textbookfull.com/product/ios-11-swift-programming-cookbook-
solutions-and-examples-for-ios-apps-1st-edition-vandad-nahavandipoor/
textboxfull.com
https://textbookfull.com/product/ios-14-programming-fundamentals-with-
swift-covers-ios-14-xcode-12-and-swift-5-3-7th-edition-matt-neuburg/
textboxfull.com
https://textbookfull.com/product/ios-10-programming-fundamentals-with-
swift-swift-xcode-and-cocoa-basics-3rd-edition-matt-neuburg/
textboxfull.com
https://textbookfull.com/product/ios-12-programming-fundamentals-with-
swift-swift-xcode-and-cocoa-basics-5th-edition-matt-neuburg/
textboxfull.com
https://textbookfull.com/product/ios-13-programming-fundamentals-with-
swift-swift-xcode-and-cocoa-basics-1st-edition-matt-neuburg/
textboxfull.com
https://textbookfull.com/product/ios-12-programming-fundamentals-with-
swift-swift-xcode-and-cocoa-basics-5th-edition-matt-neuburg-2/
textboxfull.com
Learn iOS 11 Programming with Swift 4
Second Edition
Craig Clayton
BIRMINGHAM - MUMBAI
Learn iOS 11 Programming with
Swift 4 Second Edition
Copyright © 2018 Packt Publishing
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 or its dealers and distributors, will be held liable
for any damages caused or alleged to have been 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-78839-075-0
www.packtpub.com
mapt.io
Mapt is an online digital library that gives you full access to over 5,000
books and videos, as well as industry leading tools to help you plan your
personal development and advance your career. For more information,
please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks
and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
After we have a solid foundation of using Swift, we will start creating the
visual aspects of our Let's Eat app. During this process, we will work with
storyboards and connect our app's structure together using segues. With our
UI complete, we will go over the different ways in which we can display
data. To display our data in a grid, we will use Collection Views, and to
display our data in a list, we will use Table Views.
We will also look at how to add basic and custom annotations on to a map.
Finally, it's time to get real data; we will look at what an Application
Programming Interface (API) is and how we can get real restaurant data
into our Collection Views, Table Views, and Map.
We now have a complete app, but how about adding some bells and
whistles? The first place we can add a feature will be on the restaurant
detail page where we can add restaurant reviews. Here, users will be able to
take or choose a picture and apply a filter on to their picture. They will also
be able to give the restaurant a rating as well as a review. When they are
done, we will save this data using Core Data.
Since we built our app to work on both iPhone and iPad, we should add the
ability to make our app support iPad Multitasking. Doing this will allow our
app to be open alongside another app at the same time.
Finally, let's create a quick access for our app using 3D touch where, by
tapping our app icon, the user can quickly jump to their reservations. Now
that we have added some bells and whistles, let's get this app to our friends
using TestFlight,
and finally get it into the App Store.
Who this book is for
This book is for beginners who want to be able to create iOS applications. If
you have some programming experience, this book is a great way to get a
full understanding of how to create an iOS application from scratch and
submit it to the App Store. You do not need any knowledge of Swift or any
prior programming experience.
What this book covers
Chapter 1, Getting Familiar with Xcode, takes you through a tour of Xcode
and talks about all the different panels that we will use throughout the book.
Chapter 2, Building a Foundation with Swift, deals with the basics of Swift.
Chapter 6,Starting the UI Setup, is about building the Let's Eat app. We will
focus on getting our structure set up using storyboards.
Chapter 7, Setting Up the Basic Structure, deals with working on our Let's
Eat app in a storyboard.
Chapter 10, Designing Cells, is about designing the table and collection view
cells in storyboard.
Chapter 11, Designing Static Tables, teaches how to work with a static table
view.
Chapter 12,Designing a Photo Filter and Review Form, teaches you how to
design a basic form.
Chapter 13,
Getting Started with the Grid, is about working with Collection
Views and how we can use them to display a grid of items.
Chapter 14, Getting Data into Our Grid, is about getting data into our
Collection Views.
Chapter 15,Getting Started with the List, teaches us to work with Table
View and takes a deep look at dynamic Table Views.
Chapter 16,Where Are We?, deals with working with MapKit and learning
how to add annotations to a map. We will also create custom annotations for
our map.
Chapter 17, Working with an API, is about learning how to use a JSON API
within our app.
Chapter 18, Displaying Data in Restaurant Detail, teaches you how to pass
data using segues.
Chapter 19, Foodie Reviews, talks about working with the phone's camera
and library.
Chapter 20,Working with Photo Filters, takes a look at how to apply filters
to our photos.
Chapter 21, Understanding Core Data, teaches us the basics of using Core
Data.
Chapter 22, Saving Reviews, wraps up Reviews by saving them using Core
Data.
Chapter 23,Universal, deals with multitasking on the iPad, and how we can
get an update to be supported on all devices.
Chapter 24, iMessages, is about building a custom message app UI. We will
also create a framework to share data between both apps.
Chapter 25, Notifications, provides learning on how to build basic
notifications. Then, we will look at embedding images into our notifications
as well as building a custom UI.
Chapter 26, Drag and Drop, is about learning how to add drag and drop both
within the app and accepting drag and drop from other apps.
Chapter 27, Just a Peek, looks at 3D touch and how to add quick actions to
our app. We will also look at how we can add peek and pop to our
restaurant list.
Chapter 28, SiriKit, teaches how to use Siri to create money requests.
Chapter 29, Beta and Store Submission, is about how to submit apps for
testing as well as submitting apps to the App Store.
To get the most out of this book
You need to have Xcode 9 installed in your system. To download Xcode 9
visit https://developer.apple.com/xcode/.
Download the example code
files
You can download the example code files for this book from your account
at www.packtpub.com. If you purchased this book elsewhere, you can visit www.
packtpub.com/support and register to have the files emailed directly to you.
Once the file is downloaded, please make sure that you unzip or extract the
folder using the latest version of:
The code bundle for the book is also hosted on GitHub at https://github.co
m/PacktPublishing/Learn-iOS-11-Programming-with-Swift-4-Second-Edition. We
also have other code bundles from our rich catalog of books and videos
available at https://github.com/PacktPublishing/. Check them out!
Exploring the Variety of Random
Documents with Different Content
The manor Mickle-Over with the three chapelries of Finderne,
Little-Over, and Potlac, was granted by William the Conqueror to
Burton Abbey, and it remained with it till the dissolution of
Monasteries, when Henry VIII. granted the manor to his secretary,
Sir William Paget. Thomas, Lord Paget, sold the manor to the
famous Lord Mayor of London, Sir Thomas Gresham, whose widow
married again, and left the property to Sir William Reade, her son by
her second husband. Sir William Reade’s daughter and heiress
married Sir Michael Stanhope, and had three daughters, co-
heiresses, between whom the estates were divided. In 1648, Edward
Wilmot bought two shares, viz., Little-Over and Finderne, which were
again sold by Sir Robert Wilmot to Edward Sacheverell Pole in 1801.
The remaining share, Mickle-Over, was sold to Sir John Curzon in
1648, from the Curzons Mr. Newton bought it in 1789. An ancestor of
Mr. Newton who died in 1619, had previously inherited the manor-
house of Mickle-Over by marriage with the heiress of William Gilbert,
to whom it had been sold by Sir Thomas Gresham. The house is
now occupied by the tenant of the farm.
Little-Over is about two miles from Mickle-Over, and used to be the
seat of the Harpur family, Chief Justice Sir Richard Harpur built the
manor-house, in which the family lived till the days of John Harpur,
who died in 1754, when the property passed to the Heathcotes. In
the church is a costly monument to Sir Richard Harpur, son of the
Chief Justice, and his wife Mary, daughter of Thomas Reresby. The
church consists of nave, chancel, north aisles, and bell turret on the
west gable. The blocked-up Norman doorway in the west end is the
only relic of ancient days.
Finderne is a small village, about two miles from Repton. It had a
very interesting old chapel, dating back to its Norman days, but in
the year 1862 it was completely destroyed. It must have been like
the chapel at Little-Over. The present church consists of nave,
chancel, and tower, with a spire at the west end. The only relic of the
Norman church are the tympanum of the old south door, carved in
chequered pattern, with a cross formée in the centre, and a recessed
founder’s arch in the north wall of the chancel, which contains a
much mutilated effigy of a priest.
The most valued possession of the church is a small chalice and
cover, considered to be the oldest piece of church plate in the
county. The Hall-mark shows it to be of the year 1564-5.
The Vicar of Finderne, the Rev. B. W. Spilsbury, has in his
possession a very curious and rare relic of mediæval times. It is a
small sculptured block of alabaster, 8¾ inches by 7 inches, and 1½
inches thick. There is a beautifully drawn and painted copy of it in
Vol. VIII. of the Derbyshire Archæological Journal, by Mr. George
Bailey, also an article on it by the Rev. J. Charles Cox.
A little above the centre, resting on a dish, is a head, below it is a
lamb lying on a missal or book. On the right side is a bare-headed,
full length figure of St. Peter, holding a key in his right hand, and a
book in his left. On the left side is a similar figure of an archbishop,
with a mitre on his head, a book in his right hand, and a cross-staff in
his left. The back ground, i.e. the surface of the block, is painted a
dark olive green. The head, dish and robes an orange brown. The
hair, rim of the dish, and edges of the robes, books, key, and cross-
staff are gilded. The lining of St. Peter’s robe is red, that of the
archbishop is blue. The head and dish occupy three quarters of the
space. Dr. Cox enumerates ten similar pieces of sculpture, all of
which have figures of St. Peter on the right side, and all, except one
which bears a figure of St. Paul, have a mitred archbishop on the
left, which is supposed to represent either St. Augustine, or St.
Thomas of Canterbury. The chief differences are in the figures above
and below the central head and dish. There is a cut on the forehead
over the left eye. Several suggestions have been made respecting
the head. It has been said to represent (1) The head of St. John the
Baptist, (2) The Vernicle, (3) The image of our Lord’s face, given to
King Abgarus, and (4) The First Person of the Holy Trinity. Which of
these is right is a matter for discussion, but “the block, no doubt, has
reference to the presence of our Lord in the Sacrament.”
At the back there are two holes, into which pegs could be inserted,
for the purpose or fixing it above an altar, on a reredos or otherwise,
in oratories or chantries. All the examples known were made about
the same date, at the end of the fourteenth or the beginning of the
fifteenth century.
The Vicar of Finderne also has an old deed, dated 1574, which
sets forth that, in that year, Sir Thomas Gresham sold his property at
Finderne, with manorial rights, to twelve men whose names are
given. He had 1272 acres in Finderne, and 378 at Potlock.
Potlac or Potlock was the seat of the old family of Finderns, who
for nine generations lived here (as tenants under the Abbots of
Burton), from the reign of Edward III. to Elizabeth, when Thomas
Finderne died, in 1558, leaving all his estates, here and elsewhere,
to his sister Jane, who married Sir Richard Harpur, one of the
Justices of the Common Pleas, ancestor of Sir Vauncey Harpur-
Crewe, Bart., of Calke Abbey.
The ancient manor-house, and chapel, dedicated to St. Leonard,
have disappeared. A farmhouse occupies the site of the former, and
only a few cedar trees and Scotch firs remain near the house to
connect it with the past.
NEWTON SOLNEY.
About a mile and a half from Repton, situated on the banks of the
Trent, is the pretty village of Newton Solney. To distinguish it from the
hundred or more Newtons, the name of the ancient owners Solney
or Sulney is joined to it. The manor was held, in the reign of Henry
III. (1216-72), by Sir Norman, who was succeeded in turn by Sir
Alured, Sir William, and another Sir Alured de Solney, who came to
the rescue of Bishop Stretton at Repton in 1364 (see p. 52). Sir
Alured died at the beginning of the reign of Richard II. (1377-99), and
left a son Sir John, who died without issue, and two daughters,
Margery, who married Sir Nicholas Longford, and Alice, married
three times, (1) Sir Robert Pipe, (2) Sir Thomas Stafford, (3) Sir
William Spernore. During the reign of Henry VIII., the manor was
bought of the Longfords by the Leighs. Anne, heiress of Sir Henry
Leigh, married Sir Simon Every in the reign of James I.
Abraham Hoskins, Esq., purchased the estates from Sir Henry
Every, Bart., about the year 1795, and took up his abode there. In
the year 1801 he erected a range of castellated walls, called
“Hoskins Folly,” on the high land between Newton and Burton, as a
kind of look-out over the surrounding country, later on, he converted
it into a house and called it “Bladon Castle.” Mr. Robert Ratcliff is
now the owner of the manor and patron of the living, which is a
donative. Besides “Bladon Castle” there are two principal houses,
one occupied by Mr. Ratcliff called Newton Park, and the “The Rock”
occupied by Mr. Edward D. Salt.
The picturesque church, which has been carefully restored,
contains specimens of all the styles of architecture from the Norman,
downwards. It consists of nave, chancel, north and south aisles, with
chapels, at the east end, separated from them and the chancel by
pointed arches. The chancel arch was probably removed during the
Perpendicular period.
There are three very ancient monuments of knights, which are well
worth a close inspection.
The oldest of them is now lying under an arch at the west end of
the south aisle, it is the freestone effigy of a mail-clad knight, with a
shield on his left arm, his hands are on a sword, suspended in front
on a cross-belt, unfortunately the effigy is much mutilated, the lower
part has gone.
The second, also of freestone, is under the tower, on the north
side, the head has gone, the figure is clad in a surcoat, girded by a
sword belt, parts of armour are seen in the hauberk, the feet rest on
foliated brackets of Early English work.
The third, on the south side, opposite number two, is a very
beautiful effigy in alabaster, resting on an altar tomb of the same
material. On the sides are eleven shields. The effigy will well repay a
very close inspection, it is one of the most highly finished in the
county. From its head (wearing a bassinet) down to its feet, every
detail has been elaborately worked out. Most probably the
monuments represent three members of the de Solney family, but
which is a matter of discussion.
The effigy of Sir Henry Every, Bart., has been transferred from the
chancel and placed beneath the west window of the tower. It is of
marble, and the effigy is clad in a toga and sandals of a Roman
citizen, the contrast, between it and the other two ancient ones, is
most striking! On the front of the monument is the following
inscription:—
The floor of the tower has been paved with encaustic tiles found
during the restoration, they are supposed to have been made at
Repton.
Since Dr. Cox wrote his article on Newton Solney Church the
restoration, referred to above, has been made, the whole of the
fabric has been very carefully restored, a new south porch, of stone,
has taken the place of the former brick one, the floor has been
lowered and paved with stone, with blocks of wood under the pews,
which are also new, of pitch pine.
Calke, 134-5.
Canons of, 10.
Abbey, 50.
Cambridge, 12.
Camp, Repton, 3.
Canons’ Meadow, 4.
Canons of Repton, 16.
Canute, King, 9, 16.
Carlisle, Bishop of, 126.
“Causey, the,” 66.
Cedda, 8.
Chad, St., 8.
Chalice and Cover at Finderne, 128.
Chandos, Sir John, 109.
Chandos-Poles of Radbourne, 109.
Charles I., 5, 95, 113, 126.
II., 69.
Charnwood Forest, 1.
Charters of Repton Priory, 51.
Repton School, 64.
Chellaston Hill, 91.
Chester, Hugh, Earl of, Matilda, Countess of, 10, 51.
Randulph, Earl of, 3, 10.
Chester, West, 62.
Chesterfield, Philip, 1st Earl of, 104.
Chief events referred to, &c., 87-90.
“Chronicon Abbatiæ de Evesham,” 15.
Chronicles (Rolls Series), 15.
“Church Bookes,” 36.
“Churchwardens’ and Constables’ Accounts,” 30-41.
Cissa, 11.
Civil War, 5, 105.
Clinton, William de, 3
Cokayne, Sir Arthur, 105.
Coke, Sir Thomas, 126.
Coleorton Hall, 92.
“Communion Cupp” at Hartshorn, 107.
Conquest, the, 3.
Conway, Sir W. Martin, 46.
Cornavii or Coritani, 8.
“Counter Jail,” the, 126.
Cox, Dr. Charles, 17, 30, 50, 117, 122, 126, 128, 129, 132.
Creçy, Battle of, 93.
Crewe, Sir George, 134.
Cromwell, Thomas, 53.
Cross, Repton, 4, 35.
Crowland, 12.
Abbey, 14, 15.
Croxall, 52.
Crypt of Repton Church, 17.
Culloden Moor, Battle of, 102.
Curzon, Sir John, 127.
Cyneheard, 9.
Cynewaru (Kenewara), Abbess of Repton, 9.
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.
textbookfull.com