Skip to content
Snippets Groups Projects
Commit 78953d3a authored by Joscha's avatar Joscha
Browse files

not yet working

parent 39c8e1f9
No related tags found
No related merge requests found
......@@ -272,10 +272,11 @@ class AddressHandler {
}
return exists
}
do {
try contacts = AppDelegate.getAppDelegate().contactStore.unifiedContacts(matching: predicate, keysToFetch: [CNContactFormatter.descriptorForRequiredKeys(for: CNContactFormatterStyle.fullName), CNContactEmailAddressesKey as CNKeyDescriptor, CNContactImageDataKey as CNKeyDescriptor, CNContactThumbnailImageDataKey as CNKeyDescriptor])
// try contacts = AppDelegate.getAppDelegate().contactStore.unifiedContacts(matching: predicate, keysToFetch: [CNContactFormatter.descriptorForRequiredKeys(for: CNContactFormatterStyle.fullName), CNContactEmailAddressesKey as CNKeyDescriptor, CNContactImageDataKey as CNKeyDescriptor, CNContactThumbnailImageDataKey as CNKeyDescriptor])
}
catch { }
catch { print("Contact exception") }
return contacts
}
}
......@@ -39,6 +39,11 @@
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {
......
This diff is collapsed.
......@@ -149,9 +149,12 @@ class DataHandler {
predicates.append(NSPredicate(format:"keyID = %@", k))
}
if let c = contact{
if c.getMailAddresses().count == 0 {
print("Contact with no Mail Adress: \(String(describing: c.displayname))")
} else {
let adr: Mail_Address = c.getMailAddresses()[0] as! Mail_Address
predicates.append(NSPredicate(format:"from == %@", adr))
}
}
if let f = folder{
predicates.append(NSPredicate(format:"folder == %@", f))
......
......@@ -92,6 +92,7 @@ class ReadViewController: UITableViewController {
let keyWrapper = EnzevalosEncryptionHandler.getEncryption(.PGP)?.getKey(x.key!)
keyDiscoveryDate = keyWrapper?.discoveryTime
}
return nil
}
}
......
......@@ -25,6 +25,7 @@ class ViewControllerPannable: UIViewController {
if panGesture.state == .began {
originalPosition = view.center
currentPositionTouched = panGesture.location(in: view)
} else if panGesture.state == .changed {
view.frame.origin = CGPoint(
x: 0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment