下面是我想做的一个例子:
func application(application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: NSError)
{
let nm = NetworkModel()
nm.sendlog("file name :AppDelegate , line number : 288", info: " Failed to register: \(error)")
}
当前场景我做了硬编码值 line number
和 file name
。但是是否可以通过程序选择 line number
和 file name
。