The viewDidLoad
method sets the two Bar Button Item buttons to appear on the left and right side of the navigation bar respectively. The button displayed on left side is the Edit button and the one on the right side is the Add button. The Edit button will enable us to delete information of any customer and the Add button will take us to the View of the AddCustomerClass
to enter information of the new customer. The title of the navigation item is set to display Customers List
. After the creation and initialization of the left and right side bar button items of the navigation bar, the performFetch:
message is invoked on an object returned by the fetchedResultsController
method to display the result retrieved in the fetchedResultsController
(that is, existing customer's list). Recall that the fetchedResultsController
contains the entities specified by the fetch request, arranged on the attribute specified by the sort descriptor.
Argentina
Australia
Austria
Belgium
Brazil
Bulgaria
Canada
Chile
Colombia
Cyprus
Czechia
Denmark
Ecuador
Egypt
Estonia
Finland
France
Germany
Great Britain
Greece
Hungary
India
Indonesia
Ireland
Italy
Japan
Latvia
Lithuania
Luxembourg
Malaysia
Malta
Mexico
Netherlands
New Zealand
Norway
Philippines
Poland
Portugal
Romania
Russia
Singapore
Slovakia
Slovenia
South Africa
South Korea
Spain
Sweden
Switzerland
Taiwan
Thailand
Turkey
Ukraine
United States