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
513
views
1
answer
swift - How do I declare a variable that has a type and implements a protocol?
My app has a protocol for detail view controllers, stating they must have a viewModel property: protocol ... might go about it. See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
746
views
1
answer
swift - How to use Attributed String in SwiftUI
How to use AttributedString in SwiftUI. There is no API available to use AttributedString in Text See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
667
views
1
answer
swift - iOS App Freezes on PushViewController
My navigation controller intermittently will freeze on push. It seems to add the new view controller onto the ... same position as before. See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
599
views
1
answer
swift - How can we use Assets Catalog Color Sets?
I usually use custom UIColors on iOS using extensions with Swift, but now with iOS 11/ Xcode 9 we can create ... UIColor(named: "color-name") See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.7k
views
1
answer
swift - Instance member cannot be used on type
I have the following class: class ReportView: NSView { var categoriesPerPage = [[Int]]() var numPages: Int ... ReportView' What does this mean? See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
644
views
1
answer
swift - unwrapping multiple optionals in if statement
I want to unwrap two optionals in one if statement, but the compiler complaints about an expected expression after ... smthg } Done in Swift. See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
844
views
1
answer
swift - Detect when a tab bar item is pressed
I have a root view controller which isn't set as the custom class for any of my view controllers on my ... the message is not being printed. See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
834
views
1
answer
swift - How do I check if a firebase database value exists?
I'm using the Realtime Database with Google's Firebase, and I'm trying to check if a child exists. My ... Comment if any clarification is needed See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
956
views
1
answer
swift - How to unwrap double optionals?
How do you unwrap a string that is returned as: (Optional(Optional "blue")) var cityName = String() if let ... out as (Optional "New York") See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
845
views
1
answer
swift - SwiftUI dismiss modal
Since SwiftUI is declarative there is no dismiss method. How can is add a dismiss/close button to the DetailView? ... : DetailView()) } } See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
608
views
1
answer
swift - What is Geometry Reader in SwiftUI?
I am learning SwiftUI. And I come across to "GeometryReader". And I want to know why and when to use it? See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
854
views
1
answer
swift - UISearchBar increases navigation bar height in iOS 11
I have my UISearchBar being part of the navigation bar like: let searchBar = UISearchBar() //some more ... across all view controllers ? See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
394
views
1
answer
swift - In iOS, how do I create a button that is always on top of all other view controllers?
No matter if modals are presented or the user performs any type of segue. Is there a way to keep the button " ... as an example of such button. See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
691
views
1
answer
swift - Assign value of a Firestore document to a variable
I am trying to read the value of a Firestore document. I have tried doing it two different ways, but ... ) } } return firestoreUserDocument } See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
821
views
1
answer
swift - Instance member cannot be used on type of custom class
I have a classe named "whisky builder" which only initiates the new Whisky. Now i would like to add the new ... Thanks in advance for your help See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
677
views
1
answer
swift - Cannot assign property in method of struct
In Swift, I'm trying to do the following: struct Foo { var bar = 1 func baz() { bar = 2 } } Xcode ... struct to a class, there's no error. See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
927
views
1
answer
swift - How we can get and read size of a Text with GeometryReader in SwiftUI?
I am trying to read the width of my Text depending on size of Text Font, As we know GeometryReader takes all ... .gray) .cornerRadius(20) } } See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
532
views
1
answer
swift - Selecting global or object print function
I am working with on a Cocoa project in Swift and confronted the following problem: Several classes in the Cocoa ... println: is not available. See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
368
views
1
answer
swift - How can I create a reference cycle using dispatchQueues?
I feel that I've always misunderstood that when reference cycles are created. Before I use to think ... DispatchWorkItem {...}───└────────┘ See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.2k
views
1
answer
swift - How to multiply two arrays element-wise
I need to multiply an array by another array element-wise, just like the Hadamard product of vectors in math. ... solution for me, any ideas? See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
594
views
1
answer
swift - "classname has no member functionname" when adding UIButton target
Super newb in Swift and iOS development here. I am following this tutorial about implementing a custom control in ... just crashes it later. See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
879
views
1
answer
swift - How can I easily duplicate/copy an existing realm object
I have a Realm Object which has several relationships, anyone has a good code snippet that generalizes a copy ... a duplicate in the database. See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
553
views
1
answer
swift - Why is Equatable not defined for optional arrays
Can someone give me a good reason for why this doesn't work: let a: [Int]? = [1] let b: [Int]? = nil ... _ = rhs { return false } return true } See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
553
views
1
answer
swift - Using "if let..." with many expressions
This idiom of Swift makes good sense if let x = someDict[someKey] { ... } However, what I really want ... incorrect, but is this idea possible? See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.2k
views
1
answer
swift - Fetch data from CoreData for iOS 14 widget
I want to display data fetched from Core Data in a widget. But @FetchRequest doesn't work on widgets. As I ... from Core Data in widgets. See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
843
views
1
answer
swift - Segue from modal view to tab bar view controller and not lose tab bar
Hello Im trying to segue from a modal to a tab bar view controller without losing the tab bar? I know the ... Controller A. Swift please :D See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
611
views
1
answer
swift - SwiftUI - State change in UITextField causes the frameWidth to grow uncontrolled and ignore bounds/frame
I am using SwiftUI and bridge to UITextField (I need to assign firstResponder). I use the code from here: ... the textField in the frame? See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
603
views
1
answer
swift - How to set up SceneKit collision detection
Hello I have pored over the documentation and can not figure out how to set up collision detection in scene kit. ... not sure how to do that. See Question&Answers more detail:os...
asked
Oct 17, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
Page:
« prev
1
...
27
28
29
30
31
32
33
34
35
36
37
...
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] Shift Elements of 2D VBA Array
[2] java - Flatmap vs two forEach
[3] Flutter provider, question around Dart syntax
[4] c# - Stop and start gif animation in PictureBox by enabling and disabling it in mouse events
[5] uniapp 登录跳转前问题
[6] eloquent - Laravel - use multiple value in where DB query
[7] winapi - How does WaitOnAddress / WakeByAddressAll / WakeByAddresSingle work
[8] javascript - Ionic React route changes url, page is blank
[9] android - Flutter: keep image within the screen borders on scale and pan
[10] macos - Sort files by hidden value in finder
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
广告位招租
...