Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Calling framework function in app delegate

archanasingharchanasingh DelhiPosts: 1New Users Noob
edited August 2016 in iOS SDK Development
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=\("ios")®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)

}
Tagged:
Sign In or Register to comment.