xcode8

Ionic 3 IOS application crash when click on paypal

吃可爱长大的小学妹 提交于 2019-12-26 08:27:07
问题 step 1 step 2 This is the error I am getting on clicking paypal button error this app is working fine on Android. But crashing on IOS. Build by IONIC 3. How to solve this issue ? The rent button will redirect to the PayPal. Using PayPal Sandbox account. please help. thanks 2018-05-21 13:04:03.754557+0530 thegrand[665:8151] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/krishanu_mukherjee/Library/Developer/CoreSimulator/Devices/67065A2C-5E45-47EB-AAD8-5F2E8D5149F4

Adding buttons to navigation controllers

有些话、适合烂在心里 提交于 2019-12-26 06:04:27
问题 I am working in a swift 3 xcode 8 project, and I have an issue. I have some view controllers. In the first one I've inserted a navigation controller, which gives me the "back" button when I am in another view controller. So I can go on and back to the first viewcontroller. The thing is, lets say, when I am in the third view controller I'd like to insert a button, but appearing just in this viewcontroller in the navigation controller. I've tried adding a bar button item but it doesnt work

Check live if UITextField is not empty

徘徊边缘 提交于 2019-12-25 16:44:39
问题 I have a UIAlertView which includes an UITextField. The alert view has tow buttons. One normal "dismiss" button and another "add". The "add" button should just be clickable if the UITextField is not empty. I don't know how to check in "real time" if the field is empty. I only saw the possibility to check the textField if the button has been clicked. But that's not what want ("add" button should be grayed out if thextField is empty). Do you have a solution for this? Thanks for your effort! I'm

swift 3 - core data relationship - fetch data

空扰寡人 提交于 2019-12-25 16:09:49
问题 i work with core data and swift 3 for macOS. i have to entities: Person and Books I can create a person i can create a book which will assign to a person and i know how i can get the information which book is assign to which person with this code at the end but how can i get the information which person has which book? more details in my last post: swift 3 - create entry with relationship Thank you very much :) let appdelegate = NSApplication.shared().delegate as! AppDelegate let context =

swift 3 - core data relationship - fetch data

谁说胖子不能爱 提交于 2019-12-25 16:09:27
问题 i work with core data and swift 3 for macOS. i have to entities: Person and Books I can create a person i can create a book which will assign to a person and i know how i can get the information which book is assign to which person with this code at the end but how can i get the information which person has which book? more details in my last post: swift 3 - create entry with relationship Thank you very much :) let appdelegate = NSApplication.shared().delegate as! AppDelegate let context =

SIGSEGV : Sporadic crash issue

梦想的初衷 提交于 2019-12-25 09:47:39
问题 Here is my first attempt to solve crash issue in iOS app. Sharing some crash logs here. Exception Type: SIGSEGV Exception Codes: SEGV_ACCERR at 0x97ad6beb8 Crashed Thread: 11 Application Specific Information: objc_msgSend() selector name: length and here is my 11th thread. Thread 11 Crashed: 0 libobjc.A.dylib 0x0000000180558150 objc_msgSend + 16 1 Foundation 0x00000001824f3f60 -[NSString compare:] + 28 2 Foundation 0x00000001824d88e0 _NSCompareObject + 60 3 CoreFoundation 0x0000000181a99bd0 _

2 Table View in One View Controller with Swift 3

不想你离开。 提交于 2019-12-25 09:29:56
问题 I have 2 table views in one View Controller. I declare these two tables. @IBOutlet weak var packTableView: UITableView! @IBOutlet weak var mediapackTableView: UITableView! I declare this code in ViewDidLoad. mediapackTableView.delegate = self mediapackTableView.dataSource = self mediapackTableView.register(MediaPackTableViewCell.self, forCellReuseIdentifier: "mediaPackCell") packTableView.delegate = self packTableView.dataSource = self and I also add these following codes. func tableView(_

Objective-C Bridging Header not visible

对着背影说爱祢 提交于 2019-12-25 09:18:59
问题 I am using Xcode 8.0, I have created Swift Bridging Header Manually. But I could not find the option Ojective-C Bridging Header under Swift Compiler – Code Generation . (under Targets). Please see the screenshot. Anything wrong? 回答1: In the Build Setting Section select the All tab instead of Basic and Customized then search for Bridging Header you will find it inside the Swift Comipler - General section. Same like below image. 来源: https://stackoverflow.com/questions/41135059/objective-c

Automator not working inside xcode

假装没事ソ 提交于 2019-12-25 09:15:25
问题 I am running an automator with an applescript, and while it works inside automator, it fails when run from xcode. Here's my code: tell application "Xcode" set targetProjectPath to path of active workspace document set targetProjectPath to POSIX file (targetProjectPath & "/..") as string set targetProjectPath to POSIX path of targetProjectPath tell application "System Events" tell process "Xcode" click menu item "Save" of menu 0 of menu bar item "File" of menu bar 0 end tell end tell return

Get images from Document Directory not file path Swift 3

时光毁灭记忆、已成空白 提交于 2019-12-25 08:48:31
问题 This is how I saved the images let format = DateFormatter() format.dateFormat="MMMM-dd-yyyy-ss" let currentFileName = "\(format.string(from: Date())).img" print(currentFileName) // Save Images let fileMgr = FileManager.default let dirPath = fileMgr.urls(for: .documentDirectory, in: .userDomainMask)[0] let imageFileUrl = dirPath.appendingPathComponent(currentFileName) do { try UIImagePNGRepresentation(returnedImages)!.write(to: imageFileUrl) print("Image Added Successfully") } catch { print