Post

Replies

Boosts

Views

Activity

panGestureRecognizer
HiIn this quick demo the first line as I understand is enouch to change the image of file, why he needed to use the second line the one with CGPoint.zero ? it doesnt make sense to me ?--Kindest Regardsh ttps://www.youtube.com/watch?v=rnJxpuPyLNA
0
0
296
Apr ’20
Core Data CloudKit App Concerns
Hihi I'm developing a patient management system using Code Data App that supports CloudKit, I feel it's the best scena to use, my concern is if a user a doctor for example is editing a record while another staff delete this record, what's the design pattern here ? Locking the record ? Can that be done in Core Data CloudKit ?Another concern is, what if a record is deleted and because there's few seconds of delay in data sync another user might open that record or at least try to open it ? Or maybe he edited it when he was offline and then when going online that record was deleted ?There might be many other such cases but what I understand that new systems solves this issues in a better why ?--Kindest Regards
1
0
334
Apr ’20
Runtime Nill Error
HiThis is a simple Core Data project I dont know why Im getting nil value error in line 46 in View Controller although everyting seems to be fine !--Kindest Regardsh ttps://www.dropbox.com/s/mummh4429nkhs3h/CoreDataApp.zip?dl=0
3
0
443
Apr ’20
plist file path error
HiI choosed the plist file in my iOS project and made a new group from selection to organize my project better, but started getting the error below ? haw can this be solved ?--Kindest Regardserror: Build input file cannot be found: '/Users/AmmarSM/Downloads/CoreDataApp/CoreDataApp/Info.plist' (in target 'CoreDataApp' from project 'CoreDataApp')
1
0
1.2k
Apr ’20
Strange Swift Code
HiWhen creating Core Data iOS project we get the below code, I find it strange to declare a variable then making it equal to a code ? or a result of a code without function calling ?--Kindest Regardsstatic var persistentContainer: NSPersistentContainer = { let container = NSPersistentContainer(name: "CoreDataApp") container.loadPersistentStores(completionHandler: { (storeDescription, error) in if let error = error as NSError? { store could not be migrated to the current model version. Check the error message to determine what the actual problem was. */ fatalError("Unresolved error \(error), \(error.userInfo)") } }) return container }()
1
0
528
Apr ’20