Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Login
Remember
Register
Ask
Q&A
All Activity
Hot!
Unanswered
Tags
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
743
views
1
answer
swift - using variables outside of completion block
Im currently retrieving data from firebase the data is put inside an NSObject and then a completion block. The item ... in print(error) } } See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
540
views
1
answer
swift - May I create an instance of a structure using a simple Int?
Is it right to make a structure's instance this way? public struct Barometer { public var pressure: Int public ... need to adopt a protocol? See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
763
views
1
answer
swift - How to transpose an array more Swiftly?
I want to transpose an array of arrays like this: Original array: [ [1,2,3], [4,5,6], [7,8,9] ] ... be a simpler to do this with 2D arrays. See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
543
views
1
answer
swift - Knowing where retain cycles are and removing them
I was wondering if there was an easy way (or at least a way) to find out where retain cycles exist in ... his answer will help. Thanks @Sweeper! See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.0k
views
1
answer
swift - What is the real benefit of using Raycast in ARKit and RealityKit?
What is a ray-casting in ARKit and RealityKit for? And when I need to use a makeRaycastQuery instance ... ARRaycastQuery? Any help appreciated. See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
579
views
1
answer
swift - Self in init params
I would like to use Self in init parameters like so: class A { public init(finishBlock: ((_ operation: Self) ... () } Is this somehow possible? See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
526
views
1
answer
swift - How do I design a simple Firebase Database that stores arrays?
I am in the midst of coding an IOS application using Xcode 8.2.1 in Swift. Currently, I have the database set ... you in advance for any help! See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
542
views
1
answer
swift - How can I run through three separate arrays in the same for loop?
I have three arrays I am trying to run through and I want to use the values from all three arrays in one ... ? Any help is appreciated. Thanks! See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
462
views
1
answer
swift - Reasons to include function in protocol definition vs. only defining it in the extension?
Take the following protocol and extension: protocol ProtocolA { func myFunc() } extension ProtocolA { func myFunc( ... any functionality at all? See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
728
views
1
answer
swift - In SwiftUI, How do I increase the height of a button?
As you can see in the screenshot, the button height does not adjust to fit the text size, making it look ugly. How can I ... /4)-16) } } } } } See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
506
views
1
answer
swift - Change the value that is being set in variable's willSet block
I'm trying to sort the array that is being set before setting it but the argument of willSet is immutable and ... sort is trying to mutate it. See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
650
views
1
answer
swift - Any when decoding JSON with Codable?
With Swift 3 JSONSerialization, if a part of your data model was completely dynamic, you could always just leave ... there any solution to this? See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
750
views
1
answer
swift - Remove element from collection during iteration with forEach
Recently, I wrote this code without thinking about it very much: myObject.myCollection.forEach { myObject.removeItem($0) ... it isn't crashing? See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
531
views
1
answer
swift - How to do something(for example: print("hi")) in NavigationLink before moving to a destinationView
I am trying to create a button an want to do some stuff before navigating to another view. But if I ... .foregroundColor(Color("GreyLabel0")) } See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
615
views
1
answer
swift - Result of call to [myFunction] is unused
In Obj-C, a common practice was to use convenience functions to perform common operations, like ... makeConstraint(withAnotherView: view2) See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
650
views
1
answer
swift - UIBezierPath doesn't work in TopRight corner and BottomRight corner
I want to round my right corners, but only works for Left corners let path = UIBezierPath(roundedRect: view ... view.layer.masksToBounds = true See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
635
views
1
answer
swift - Testing if an element is visible with Xcode 7 UITest
I want to verify if an element is visible or not depending on its .hidden property but I don't find a ... verify the "hidden" property value? See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
448
views
1
answer
swift - Checking if an array of custom objects contain a specific custom object
say i have a very simple Person class class Person { var name:String init(name:String) { self.name = name } ... (Person) throws -> Bool'" See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
488
views
1
answer
swift - Operation on an array of structs implementing Equatable
I have an array of different structs, all implementing Equatable protocol and am trying to pass it to a function ... 'T' could not be inferred See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
453
views
1
answer
swift - IPv6 - Apple rejects iOS app because of not Supporting IPv6 DNS64 / NAT64 Networks
Where is the error? Apple reject app and sent messege: Performance - 2.1 We discovered one or more bugs ... got the following results: Thanks! See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
620
views
1
answer
swift - Reference cycles with value types?
Reference cycles in Swift occur when properties of reference types have strong ownership of each other (or with closures). ... otherA = A() } } See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
807
views
1
answer
swift - New Line Command ( ) Not Working With Firebase Firestore Database Strings
I'm making an app with Swift and I'm using Firebase Firestore. Firestore is a database that has some strings that I ... "] as? String)! } } See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.6k
views
1
answer
swift - iOS TableView reload and scroll top
the second day I can not solve the problem with the table. We have a segmentedControl which, when changed ... Congrats on the upcoming holidays! See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
609
views
1
answer
swift - How to improve People Occlusion in ARKit 3.0
We are working on a demo app using people's occlusion in ARKit. Because we want to add videos in the final ... SCNBox does not fix the problem. See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
607
views
1
answer
swift - Displaying Artwork for .MP3 file
I am trying to currently display the album artwork for a locally stored .MP3 track in an ImageView. Does ... commonKey for "artwork". Thanks See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
749
views
1
answer
swift - CoreData and SwiftUI: Context in environment is not connected to a persistent store coordinator
I am trying to teach myself Core Data by building a homework managing app. My code builds fine and the ... window.makeKeyAndVisible() } } See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
643
views
1
answer
swift - How to remove "row" separators/dividers from a List in SwiftUI?
I'm trying to remove the "row" separators (known as dividers in SwiftUI) from a List in SwiftUI. I went ... . Any help would be appreciated. See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
650
views
1
answer
swift - How do I programmatically move an ARAnchor?
I'm trying out the new ARKit to replace another similar solution I have. It's pretty great! But I ... surface (ARHitTestResult). Thanks! See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
Page:
« prev
1
...
22
23
24
25
26
27
28
29
30
31
32
...
70
next »
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question
Just Browsing Browsing
[1] pycharm导入Django模块报红,但是可以使用找了好多方法没有解决
[2] unity3d - Layering multiple Normal maps into one without blending in a Unity Surface shader script
[3] 对于vuejs中自定义组件v-model的一些疑问
[4] 请教一个 css样式 关于浏览器切换手机模式浏览的问题
[5] python - Why am I presented with an IndexError and what ways can I make this code more succinct
[6] jupyter notebook crashed after traning a model
[7] java - Problem with setting tableName dynamically with Spring Boot and DynamoDB using older version of spring-data-dynamodb
[8] How to initialize an array object with extra properties in TypeScript?
[9] Javascript: Iterate over an array of objects nested within an object as a value
[10] Chrome produces no audio after reaching 50 audio output streams
2.1m
questions
2.1m
answers
60
comments
57.0k
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
广告位招租
...