iphone

SwiftUI drag from one list to another list

青春壹個敷衍的年華 提交于 2021-01-28 10:14:56
问题 I am trying to drag and drop between to Lists. What I have tried: I have found a solution doing it in UIKIt and the using UIViewControllerRepresentable. But that is not what i want. The other solution was using .onDrag {} on list, but that worked on iPad and didn't work on iPhone. How to move items between two Lists on iPhone? 回答1: check this out: BUT -> as you wrote, it works NOT with list (just on iPad), with VStack you can drag from left to right or right to left. import SwiftUI struct

iPhone URL Schema for Camera

我只是一个虾纸丫 提交于 2021-01-28 09:37:44
问题 I want to launch iPhone Camera from web page. I googled around and came to know that it is possible through URL Schema I have doubt that after registering URL Schema, how should i submit to AppStore and Are there any built-in URL Schemas for Camera Please tell me. 回答1: If you want to submit your own app, you can implement a custom URL scheme to launch your app. Your app can then access the camera using standard APIs. If you would like to upload the photo and bring it back to your webpage, the

How to blur the background of a segmented control?

人走茶凉 提交于 2021-01-28 09:33:29
问题 I'm defining a segmented control inside of a UITableViewDelegate's tableView(_:viewForHeaderInSection:) . Since I'm using UITableView.Style.plain , when the table scrolls, the header with the segmented control stays in a fixed position. I'd like to create some context so that the background of the unselected segmented control blurs the table that is scrolling behind it. Here is what an ios 13 segmented control looks like: Is there a way to blur the background of a segmented control's

iPhone URL Schema for Camera

北战南征 提交于 2021-01-28 09:33:23
问题 I want to launch iPhone Camera from web page. I googled around and came to know that it is possible through URL Schema I have doubt that after registering URL Schema, how should i submit to AppStore and Are there any built-in URL Schemas for Camera Please tell me. 回答1: If you want to submit your own app, you can implement a custom URL scheme to launch your app. Your app can then access the camera using standard APIs. If you would like to upload the photo and bring it back to your webpage, the

How to blur the background of a segmented control?

萝らか妹 提交于 2021-01-28 09:31:55
问题 I'm defining a segmented control inside of a UITableViewDelegate's tableView(_:viewForHeaderInSection:) . Since I'm using UITableView.Style.plain , when the table scrolls, the header with the segmented control stays in a fixed position. I'd like to create some context so that the background of the unselected segmented control blurs the table that is scrolling behind it. Here is what an ios 13 segmented control looks like: Is there a way to blur the background of a segmented control's

Core data edit function

杀马特。学长 韩版系。学妹 提交于 2021-01-28 09:30:35
问题 I already have a tableView with data in it. IF you tap a cell/row it pushes to an edit type of view. Is there anyway to edit core data's data other than: By edit, i mean i already have data inserted into my context. I have loaded my data into my view, the user can change the existing data, and re save it. .h //Below is the entity/entity's class name 'Amm' Amm *amm; .m -(IBAction)save { [self.amm setValue:self.nameField.text forKey:@"name"]; [self.amm setValue:self.nicknameField.text forKey:@

Core data edit function

谁说胖子不能爱 提交于 2021-01-28 09:23:41
问题 I already have a tableView with data in it. IF you tap a cell/row it pushes to an edit type of view. Is there anyway to edit core data's data other than: By edit, i mean i already have data inserted into my context. I have loaded my data into my view, the user can change the existing data, and re save it. .h //Below is the entity/entity's class name 'Amm' Amm *amm; .m -(IBAction)save { [self.amm setValue:self.nameField.text forKey:@"name"]; [self.amm setValue:self.nicknameField.text forKey:@

onclick event doesn't work on iphone

时光毁灭记忆、已成空白 提交于 2021-01-28 09:01:03
问题 I have form which should upload image. each form placed in iframe <body style="margin: 0; padding: 0; height: 100%; cursor: pointer;" onclick="document.querySelector('.register-upload-input').click()"> <form method="POST" action="http://127.0.0.1:8000/de/client/registerupload" accept-charset="UTF-8" enctype="multipart/form-data"> <input class="register-upload-input" style="display: none;" onchange="document.querySelector(".preloader").style.display="block";document.querySelector("form")

Kiosk mode iOS app and auto update from appstore

泄露秘密 提交于 2021-01-28 08:13:33
问题 I'm developing app which is going to be constantly running in foreground on iPad devices in Kiosk mode. Does auto update work in this case (assuming auto update app is enabled in device settings)? In my opinion NO and I have to manually check i.e once a day and if new version appear in the AppStore. Am I right? 回答1: Yes, you are right. iOS doesn’t allow any updates in Kiosk mode. So, as an admin, if one needs to update the app, you would remove the app lock policy, then push the app update,

Handling keyboard with bottom constraint

心不动则不痛 提交于 2021-01-28 08:06:08
问题 I'm building a chat app with a regular design and UI of a chat app. I have a "toolbar" that my app needs (0,0 375x66) and I want it to stay where it is when the keyboard is shown. It has 4 constraints: top: 0, leading: 0, trailing: 0, aspect-ratio: 125:22 I have a UICollectionView (0,66 375x530) that I want to be scrolled like any other chat app when the keyboard is shown. It has 4 constraints: top (to the toolbar): 0, leading: 0, trailing: 0, bottom (to the newMessageView I'll explain