Welcome to the iMore Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 1 of 1
  1. Thread AuthorThread Author   #1  
    Archana Singh1's Avatar
    iMore Nanite

    Posts
    1 Posts

    Default Calling framework function in app delegate

    i have created a function in framework please let me know how to access it in app delegate.

    below is the framework function

    public func deviceregistration()

    {
    let post: String = "appid=\(appid)=&deviceid\(deviceid)&ApiID=\(ApiID )&ApiKey=\(ApiKey)&ApiSecret=\(ApiSecret)&os=\("io s")Id=\(oNSUUID.UUIDString)"

    }

    below is the app delegate where i want call this function

    func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData)

    {

    // call post for append post value in below

    let postData:NSData = post.dataUsingEncoding(NSASCIIStringEncoding)!
    let postLength:NSString = String(postData.length)

    }

Similar Threads

  1. Why does my Snapchat folder in photos say downloading?
    By iMore Question in forum Ask a Question
    Replies: 1
    Last Post: 08-10-2016, 07:09 AM
  2. Does it really take forever for an app update to be approved?
    By iMore Question in forum Ask a Question
    Replies: 4
    Last Post: 08-10-2016, 05:43 AM
  3. Do you have this page in espanol?
    By iMore Question in forum Ask a Question
    Replies: 2
    Last Post: 08-10-2016, 12:04 AM
  4. How can I get you guys to do a review of my iOS app?
    By iMore Question in forum Ask a Question
    Replies: 4
    Last Post: 08-09-2016, 08:13 PM
  5. How to move, force quit, and delete apps with the Siri Remote on Apple TV
    By iMore.com in forum iMore.com News Discussion
    Replies: 0
    Last Post: 08-09-2016, 05:30 PM

Posting Permissions