xcode

IOS swiftUI can't read json from local files [closed]

淺唱寂寞╮ 提交于 2021-02-11 17:51:07
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 10 months ago . Improve this question I'm new with IOS development, I'm using swiftUI and following this tutorial https://developer.apple.com/tutorials/swiftui/building-lists-and-navigation but I have been stuck here for a while, In the tutorial, they pass one item from a json file in the project struct

xcodebuild Unsigned IPA - Missing Push Notification Entitlement (Work when signing directly the App in XCode)

风流意气都作罢 提交于 2021-02-11 16:55:54
问题 Context : XCODE 12.0.1 I'm using Push Notifications in Ionic. The configuration is OK. I added the Push Notification Capability in Signing and Capabilities . I build my app and I do npx cap open ios , and I do Product > Archive and then it asks me to sign the app, I sign it, and OK. When I test Notifications, everything works well. Problem : I need to generate unsigned IPA with xcodebuild for my client. He wants to sign it himself. But when I generate the xcarchive (unsigned IPA), then he

xcodebuild Unsigned IPA - Missing Push Notification Entitlement (Work when signing directly the App in XCode)

你离开我真会死。 提交于 2021-02-11 16:54:58
问题 Context : XCODE 12.0.1 I'm using Push Notifications in Ionic. The configuration is OK. I added the Push Notification Capability in Signing and Capabilities . I build my app and I do npx cap open ios , and I do Product > Archive and then it asks me to sign the app, I sign it, and OK. When I test Notifications, everything works well. Problem : I need to generate unsigned IPA with xcodebuild for my client. He wants to sign it himself. But when I generate the xcarchive (unsigned IPA), then he

Overflowing drop down button in a tableview cell: can I make it clickable?

早过忘川 提交于 2021-02-11 15:46:56
问题 I am currently working on a project where I am placing a drop down button inside a tableview cell. The "drop down part" overflows the bottom of the cell and goes into the cell below. Right now I am are not able to click the overflowing part. Are there a way to make this part clickable? You can find a part of my code in the link below https://github.com/Rawchris/Drop-down-overflow To spell it out, I would like to be able to click Option 3 and 4 in the project above. Please tell me if you want

How to constrain static table view controller cells to Safe Area in Swift/iOS

倾然丶 夕夏残阳落幕 提交于 2021-02-11 15:40:26
问题 I have a table view controller with static cells. I’m running on iPhone X and when scrolling, the cells appear to be behind the navigation bar and unsafe area. What is preferred would be a solid orange color in the unsafe area instead of the image presented below. Is this possible? I can’t move to a table view inside of a view controller, which I would then constrain to the safe area, because my cells are static. 回答1: You need to use a Container View , so add a View Controller in your

SwiftUI open view with data or only with a reference to Firestore document

房东的猫 提交于 2021-02-11 15:39:20
问题 I need to open a view called PackageDetails . There are two cases in which this view could be opened. 1. If you tap a specific Package from a list of packages. I have an array of all the packages. So I'm passing the specific struct from this list and I'm opening this package view. PackageDetail(package: package) . I already have all the data I need so I do not need to make an extra call to Firestore to fetch this document. 2. Package view can be opened by a link from some other view in this

SwiftUI open view with data or only with a reference to Firestore document

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-11 15:38:59
问题 I need to open a view called PackageDetails . There are two cases in which this view could be opened. 1. If you tap a specific Package from a list of packages. I have an array of all the packages. So I'm passing the specific struct from this list and I'm opening this package view. PackageDetail(package: package) . I already have all the data I need so I do not need to make an extra call to Firestore to fetch this document. 2. Package view can be opened by a link from some other view in this

How to get rowIndex by switchButton of TableCellView “Custom”

我与影子孤独终老i 提交于 2021-02-11 15:34:31
问题 I'm building a simple TableViewController, with a Custom TableViewCell. In this TableViewCell I have 1) ImageView 2) Label 3) Switch Button Now for example I have when I try to start my application 5 row. I want to start a method if the user click on switch button of one of the rows items. So I have build this method: @IBAction func attivaLuci(sender: UISwitch) { if sender.on { //ATTIVO LA LUCE CORRISPONDENTE }else{ //DISATTIVO LA LUCE CORRISPONDENTE } } now how can I get the rowIndex of the

How to get rowIndex by switchButton of TableCellView “Custom”

与世无争的帅哥 提交于 2021-02-11 15:31:00
问题 I'm building a simple TableViewController, with a Custom TableViewCell. In this TableViewCell I have 1) ImageView 2) Label 3) Switch Button Now for example I have when I try to start my application 5 row. I want to start a method if the user click on switch button of one of the rows items. So I have build this method: @IBAction func attivaLuci(sender: UISwitch) { if sender.on { //ATTIVO LA LUCE CORRISPONDENTE }else{ //DISATTIVO LA LUCE CORRISPONDENTE } } now how can I get the rowIndex of the

How to use libarchive in iOS in Xcode?

匆匆过客 提交于 2021-02-11 15:19:42
问题 I want to add libarchive to my app to be able to extract tar.gz. As install instruction says, I took following steps: cmake -G "Xcode" ~/libarchive-download-dir/ make make install Now I have a libarchive.14.dzlib file. I added it to the project, and wants to call i.e. the following, like proposed in examples r = archive_read_open_filename(a, "archive.tar", 10240); but, method is not declared. I guess I have to add a header to the project?! It is a dylib, I am not sure. But I do not found any