This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Contact { | |
let user : User | |
let address : Address | |
let deliveryInstruction : String | |
let deliveryMethod : String | |
init(dictionary: [String: Any]) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class DisplayAsOptionViewController: UIViewController { | |
fileprivate let cartHeaderCell = "cartHeaderCell" | |
let optionCell = "optionCell" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Note : also i am testing by apn tester both ios9 and io10 it is working fine .. my project in swift 2 . | |
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { | |
//ask for user to permited push notification | |
registerForPushNotifications(application) | |
//crate notification with sound alert, Badge , and sound | |
let notificationTypes: UIUserNotificationType = [UIUserNotificationType.Alert, UIUserNotificationType.Badge, UIUserNotificationType.Sound] |