دسته‌بندی نشده

Partial matches On switch case syntax

when you are working with tuples, there are some occasions you want a partial match: you care what some values are but do not care about others. in this example , use underscores to represent (any value is fine) , like this:

Swift will take the first matching case it finds, so you need… ادامه مطلب Partial matches On switch case syntax

CoreData, programming, Swift

coreData Walking pet part 2

in the previuse post we made apreance the app and made an entity for saving data. in this post we will code the app. at the first we want to managed object subclasses Managed object subclasses  in the previuse toturial we used key-value coding to access the attribute on the person entity

The best… ادامه مطلب coreData Walking pet part 2

CoreData, programming, Swift

Core Data Walking pet part 1

Make a new project with uses Xcode’s Core Data-enabled Single View Application template, this means Xcode generated its own ready-to-use Core Data stack located in AppDelegate.swift Open Main.storyboard. Here you have to make the sample project’s single-page UI like below: storyboard now , you have to link storyboard to code like below:

This project includes a property list… ادامه مطلب Core Data Walking pet part 1