Problem: Invalid bundle. The “ UIInterfaceOrientationLandscap eLeft, UIInterfaceOrientationLandscap eRight, UIInterfaceOrientationPortrait ” orientations were provided for the UISupportedInterfaceOrientatio ns Info.plist key in the com.myapp bundle, but you need to include all of the “ UIInterfaceOrientationPortrait , UIInterfaceOrientationPortrait UpsideDown, UIInterfaceOrientationLandscap eLeft, UIInterfaceOrientationLandscap eRight” orientations to support iPad multitasking. For details, visit: https://developer.apple.com/ documentation/bundleresources/ information_property_list/ uisupportedinterfaceorientatio ns . (ID: something) Solution: In the above image you have to check the full screen option enabled.If not then enable and upload it will works.
Solution: If you saved the entire path like file://....png then it is not possible to get the image because document directory path will be dynamic.So better you can save the imagename in your coredata after that below code to get the image. Code: let documentsDirectory = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0] let urls = documentsDirectory.appendingPathComponent(filename) it will return the url of the image.You can get the image and enjoyyy....
We cannot convert string directly to NSNumber. So we will convert string to Int then convert Int to NSNumber. Code: NSNumber (value: Int ( "String" )!)
Comments
Post a Comment