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)
}