Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
Login
Remember
Register
Ask
Q&A
All Activity
Hot!
Unanswered
Tags
Categories
Users
Ask a Question
Ask a Question
Categories
All categories
Topic[话题] (13)
Life[生活] (4)
Technique[技术] (2.1m)
Idea[创意] (3)
Jobs[工作] (2)
Others[杂七杂八] (18)
Code Example[编程示例] (0)
Recent questions tagged swift
0
votes
1.6k
views
1
answer
swift - Center Item Inside Horizontal Stack
If I have 3 items inside a Horizontal Stack, I thought I could do something like this: HStack{ Text("test") Spacer() item2() Spacer() Text("test") ... can I make it so item2() is always centered? Thanks See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.7k
views
1
answer
swift - How to query nested data in Firebase Database?
How can I make a query to get all bookings of all users that have timestamp in the range of 1519912278 ...1520689878 ? In Firebase docs it states that I ... on the UsersProfile "Name": "John Doe" } } } See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.5k
views
1
answer
swift - How to generate a binding for each array element
If I had a @State or an @ObservedObject variable with an array property, and I wanted to use List and pass a binding of each element of the ... // more required extensions to Collection and Sequence here See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.7k
views
1
answer
swift - PreviewProvider and ObservedObject properties
how can I set a property to my CoreData Object which has the type CDObject, it has a property called name: String My issue is now that I do not know how ... View: let itm = CDObject() itm.name = "Hello" See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.9k
views
1
answer
swift - Get LAT and LONG from tapped overlay in Google Maps
When a user taps an overlay, the following code is triggered: func mapView(_ mapView: GMSMapView, didTap overlay: GMSOverlay) { } I wonder if we can ... of the overlay that has been tapped? Thanks! See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.6k
views
1
answer
swift - Using delegates on generic protocol
I have got this code: protocol GenericProtocol: class { associatedtype type func funca(component: type) } class MyType<T> { weak var delegate: GenericProtocol? ... I can get this code to compile? Thanks. See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.6k
views
1
answer
swift - Issue with adding node to scene view
I am having an issue with the way the model is being placed on the scene view. The problem is that the model downloads successfully but for some reason ... addChildNode(node) } catch{ print(error) } } } See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.6k
views
1
answer
swift - Enumeration with raw values
Why I can't define enumeration with raw values like this? enum Edges : (Double, Double) { case TopLeft = (0.0, 0.0) case TopRight = (1.0, 0.0) case BottomLeft = (0.0, 1.0) case BottomRight = (1.0, 1.0) } See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.7k
views
1
answer
swift - Find multiple quoted words in a string with regex
My app supports 5 languages. I have a string which has some double quotes in it. This string is translated into 5 languages in the localizable.strings files ... , so to avoid the words in between quotes. See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.6k
views
1
answer
swift - Token Mismatch using Phone Number Authentication - iOS
I am trying to login account using phone number authentication using firebase. Initially, i deployed the app with my device and it works fine. But when i ... device it still gives me error. I wonder why? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.8k
views
1
answer
swift - SwiftUI out of index when deleting an array element in ForEach
I looked through different questions here, but unfortunately I couldn't find an answer. This is my code: SceneDelegate.swift ... let contentView = ... string, I need a connection in both directions. See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.5k
views
1
answer
swift - turn for in loops local variables into mutable variables
I've this code that I made on playground to represent my problem: import Foundation var countries = ["Poland":["Warsaw":"foo"],"England":["London":"foo ... a work around or the best way to make this work? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.7k
views
1
answer
swift - Naming convention for optional binding
One thing that originally discouraged me from incorporating too much optional binding in my code was the addition of more variable names. For example, I ... use with optional binding? Thanks for reading. See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
2.2k
views
1
answer
swift - Load desktop version WKWebView iOS 9
Up until recently let url = NSURL (string:http://asite.com) let request = NSMutableURLRequest(URL: url!) //iOS loads the mobile version of asite.com which ... for my app to auto update to the newest one? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.5k
views
1
answer
swift - How to mimic `UITableViewController` showing of the large titles in `navigationBar` on iOS 11
I'm trying to use prefersLargeTitles from iOS 11 in my application. It works as expected in subclasses of UITableViewController: navigationController?.navigationBar. ... normal one. How to solve this? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.4k
views
1
answer
swift - Change WebView url from AppDelegate
I'm receiving notifications from Firebase in the AppDelegate class. This notification contains a String named "notif_url". I've put this value in a var named " ... text)!) my_web_view.goBack() } } } } See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.6k
views
1
answer
swift - Core Data Predicate not working
I am new to Mac and am writing my first app using Core Data. I have a data model in which there is entity SizeRecord which has single attribute "size ... ? It must be something very simple and stupid :) See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
2.0k
views
1
answer
swift - requestWhenInUseAuthorization() not Work in iOS 8 With NSLocationWhenInUseUsageDescription Key in Info.plist
I am using iOS SDK 8.1 trying to call requestWhenInUseAuthorization() method to prompt user to grant access to my app. I imported CoreLocation.framework, and ... App", "Always". But nothing was selected. See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.5k
views
1
answer
swift - Why does Int(Float(Int.max)) give me an error?
I observed something really strange. If you run this code in Swift: Int(Float(Int.max)) It crashes with the error message: fatal error: ... the expected 9223372036854775807! What is wrong with swift? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.8k
views
1
answer
swift - How to embed third party framework on ionic capacitor custom plugin?
I am developing an Ionic Capacitor plugin which imports 2 iOs .framework files and a .bundle that refers to one of this .framework files. The thing is that ... of the plugin that I am trying to do. See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
3.0k
views
1
answer
swift - UIAlertView is deprecated and unavailable for UIScene based applications, please use UIAlertController
I'm new to Swift and I'm getting this Error. I don't get it because I don't use any type of alert in my code. Here is my ... example and any website which uses the location like google maps. See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.8k
views
1
answer
swift - Draw a semi-circle button iOS
I am trying to draw a semi-circle button. I'm having trouble both drawing the semi-circle and attaching it to the button I made in xcode. ... .path = circlePath.CGPath sunButton.layer.mask = circleShape See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.3k
views
1
answer
swift - How to rotate sprites around a joint
I need to make the arms and hands rotate around the center of the hook, as shown in the image below without them separating or changing their shape (no ... can I get the rotation in the image first image? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.7k
views
1
answer
swift - SceneKit – Custom geometry does not show up
I should see 2 yellow triangles, but I see nothing. class Terrain { private class func createGeometry () -> SCNGeometry { let sources = [ SCNGeometrySource( ... -custom geometry which I see. What's wrong? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.6k
views
1
answer
swift - Declare array of classes that conform to a protocol
Lets say I have created this protocol and a couple of classes import UIKit protocol ControllerConstructorProtocol { class func construct() -> UIViewController? ... viewController = array[0].construct() See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.8k
views
1
answer
swift - Using YTPlayerView to play embedded YouTube video in iOS failed with restriction error
I want play embedded YouTube video in iOS app using YTPlayerView provided at https://developers.google.com/youtube/v3/guides/ios_youtube_helper When I tried to play ... (string: "http://www.youtube.com")) See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.5k
views
1
answer
swift - Retrieve multiple photos under a node from Firebase Storage
I have a CollectionView that I am using images from Firebase Storage to fill. I store the images under 'userId' node. I want to check the files ... can I retrieve images in bulk from Firebase Storage? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.9k
views
1
answer
swift - ARKit – Viewport Size vs Real Screen Resolution
I am writing an ARKit app that uses ARSCNView hitTest function. Also the app sends captured images to the server for some analysis. I notices when I do: ... size" (e.g. coordinates) is used in hitTest? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
Page:
1
2
3
4
5
6
...
70
next »
Ask a question:
Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
Just Browsing Browsing
[1] typescript - Setting buildOptimizer to true in angular.json causes application to not work correctly
[2] ConcurrentHashMap类型的成员变量,为何在业务方法中还要加锁?
[3] http 接口心跳要保活?
[4] stylelint禁止下载sass的binding.node文件
[5] shell - extract content from patterns in File using sed
[6] java - having String Index Out Of Bounds Exception while file reading
[7] 用 js 正则匹配以xxx开头,以xxx结尾,中间可以包含任意字符、符号、换行符的字符串。
[8] npm中有没有类似demjson 的库啊,将不标准的json字符串处理成标准的
[9] visual studio 2019 - shlwapi.h compile errors in imported project
[10] vue中使用v-for进行循环undefined会导致该元素标签都没了
548k
questions
547k
answers
4
comments
55.4k
users
Most popular tags
javascript
python
c#
java
How
android
c++
php
ios
html
sql
r
c
node.js
.net
iphone
asp.net
css
reactjs
jquery
ruby
What
Android
objective
mysql
linux
Is
git
Python
windows
Why
regex
angular
swift
amazon
excel
algorithm
macos
Java
visual
how
bash
Can
multithreading
PHP
Using
scala
angularjs
typescript
apache
spring
performance
postgresql
database
flutter
json
rust
arrays
C#
dart
vba
django
wpf
xml
vue.js
In
go
Get
google
jQuery
xcode
jsf
http
Google
mongodb
string
shell
oop
powershell
SQL
C++
security
assembly
docker
Javascript
Android:
Does
haskell
Convert
azure
debugging
delphi
vb.net
Spring
datetime
pandas
oracle
math
Django
联盟问答网站-Union QA website
Xstack问答社区
生活宝问答社区
OverStack问答社区
Ostack问答社区
在这了问答社区
在哪了问答社区
Xstack问答社区
无极谷问答社区
TouSu问答社区
SQlite问答社区
Qi-U问答社区
MLink问答社区
Jonic问答社区
Jike问答社区
16892问答社区
Vigges问答社区
55276问答社区
OGeek问答社区
深圳家问答社区
深圳家问答社区
深圳家问答社区
Vigges问答社区
Vigges问答社区
在这了问答社区
DevDocs API Documentations
Xstack问答社区
生活宝问答社区
OverStack问答社区
Ostack问答社区
在这了问答社区
在哪了问答社区
Xstack问答社区
无极谷问答社区
TouSu问答社区
SQlite问答社区
Qi-U问答社区
MLink问答社区
Jonic问答社区
Jike问答社区
16892问答社区
Vigges问答社区
55276问答社区
OGeek问答社区
深圳家问答社区
深圳家问答社区
深圳家问答社区
Vigges问答社区
Vigges问答社区
在这了问答社区
在这了问答社区
DevDocs API Documentations
Xstack问答社区
生活宝问答社区
OverStack问答社区
Ostack问答社区
在这了问答社区
在哪了问答社区
Xstack问答社区
无极谷问答社区
TouSu问答社区
SQlite问答社区
Qi-U问答社区
MLink问答社区
Jonic问答社区
Jike问答社区
16892问答社区
Vigges问答社区
55276问答社区
OGeek问答社区
深圳家问答社区
深圳家问答社区
深圳家问答社区
Vigges问答社区
Vigges问答社区
在这了问答社区
DevDocs API Documentations
广告位招租
...