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
1.1k
views
1
answer
swift - Upgrading Firebase broke my iOS project
I wish I had never updated my pod, the entire project was full of errors, one specific error is in the photo ... }) }) uploadTask.resume() } See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.1k
views
1
answer
swift - Use of undeclared type 'AttributedString'
Xcode 8 beta 4 no longer recognizes Foundation class AttributedString. I've reproduced it in this simple ... code error in Playground? 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 - iOS-Charts Float to Integer YAxis
I'm building a chart using iOS-charts I'm trying to convert the floats into int, but iOS-charts only allows ... making sure only ints are used? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
955
views
1
answer
swift - Why does the following code crash on an iPhone 5 but not an iPhone 5S?
func rand(max: Int?) -> Int { var index = Int(arc4random()) return max? != nil ? (index % max!) : index } ... % UInt32(max!)) : Int(index) } 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 - iOS 10 custom navigation bar height
I implemented custom navigation bar height, by subclassing it with following code class TMNavigationBar: UINavigationBar { /// ... bar in IB). 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 - UIPickerView selectRow doesn't works
I try to select a row in my PickerView but it doesn't works. It stays at the first row. Here is my code: ... row but it stays on the first 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 - List all subclasses of one class
Can I return a list of all subclasses of one class? For example: class Mother { } class ChildFoo: Mother ... [ChildFoo.self, ChildBar.self] 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 convert array of dictionary to JSON?
I have an array of dictionaries that I'd like to convert to JSON. My object is of type [[String: AnyObject]] and ... } } How can I do this? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.2k
views
1
answer
swift - IOS 8 iPad App Crashes When UIActivityViewController Is Called
When a UIActivityViewController is called on the iPhone in this app, it works perfectly, but when called on a iPad, ... do to fix this problem? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
970
views
1
answer
swift - How to increase (animate) the width of the square on both ends?
I have created a square that is 40x40, as shown above. I have a 4x40 strip that I'd like to use to ... also increase as the sprite increases. See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
961
views
1
answer
swift - What are the functional differences between Coredata's CodeGen 'manual/none + create NSManagedObject subclass' vs. 'category/extension'
I've read Subclassing NSManagedObject with swift 3 and Xcode 8 beta and read this great tutorial. Still have questions on ... - without ? or !? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.2k
views
1
answer
swift - Add constraints to generic parameters in extension
I have this function: func flatten<Key: Hashable, Value>(dict: Dictionary<Key, Optional<Value>>) -> Dictionary ... protocol type 'Optional<Any>' See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.1k
views
1
answer
swift - Why do integers not conform to the AnyObject protocol?
Why can I have an [AnyObject] array and put a bunch of different sized types in it ... var a = [AnyObject] ... ? Why is this designed like this? 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 - MFMailComposeViewController behaves differently in iOS 13 simulator and device
I'm trying to display MFMailComposeViewController in an app. if MFMailComposeViewController.canSendMail() { let ... } Demo project See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.1k
views
1
answer
swift - Difference between NSRange and NSMakeRange
Is there any difference between: NSRange(location: 0, length: 5) and: NSMakeRange(0, 5) Because Swiftlint throws a ... Thanks for the Help :-) See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.1k
views
1
answer
swift - NSImage Getting Resized when I draw Text on it
I have the following code to draw a text over an NSImage. But the resulting image is getting resized to smaller ... im.unlockFocus() return im } See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
926
views
1
answer
swift - Generic Types Collection
Building on previous question which got resolved, but it led to another problem. If protocol/class types are stored in ... .speak() } } } 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 - Instance member cannot be used on type Class?
I'm trying to access the name variable from Indicator class, which inherits from Person. However, I believe I'm not ... print("(name)") } } See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.0k
views
1
answer
swift - No such Module Error
I am working on a chat app using Swift, and cocoa pods and I keep getting this issue. It says no such ... ) default: break } } } See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.2k
views
1
answer
swift - Using AppleScript with Apple Events in macOS - Script not working
We need to use a AppleScript to create an outgoing email message in macOS. The script works fine in the Script ... "runScript",self.script) } } See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.0k
views
1
answer
swift - Trap SIGINT in Cocoa macos application
I am attempting to trap a SIGINT for a UI application made for MacOS. In the app delegate class, I ... can close the resources appropriately? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.1k
views
1
answer
swift - Load data from json using UIPickerView
My Current View Controller is like this import UIKit import Alamofire class ViewController: UIViewController , ... Please help!!! See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.2k
views
1
answer
swift - How to set UIButton font via appearance proxy in iOS 8?
I tried to set the font of UIButton via appearance proxy. But it doesn't seem to work. This is what ... conforms to the UIAppearance protocol." 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 - Rounded corners for UITabBar
I would like to create a UITabBar with rounded corners. Is there a way I can make the UITabBar ... () return newImage! } 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 - Programmatically disabling screenshot in App
I want to prevent taking screenshot of a page in app. how to do it programmatically so that screenshots ... // executes after screenshot } See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.2k
views
1
answer
swift - Firebase Firestore: Append/Remove items from document array
I am trying to append/remove items from an array inside of a Firestore Document but every time the entire ... currently possible in Firestore? See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
0
votes
1.1k
views
1
answer
swift - How to render a whole UITableView as an UIImage in iOS?
I have simple UITableView with some data. The table's height is greater than the screen size. Now I need to catch ... to capture this. isn't it? 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 - iOS app doesn't ask for location permission
My Swift-iOS app is meant to show the user's location on a map. However, the XCode debug console tells me I ... as indicated here doesn't help. See Question&Answers more detail:os...
asked
Oct 24, 2021
in
Technique[技术]
by
深蓝
(
71.8m
points)
swift
Page:
« prev
1
2
3
4
5
6
7
8
9
10
11
...
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] stream流复制之后write方法无法使用
[2] android 开发源码不知道原因为啥记录很多classindex
[3] vue.js - Can I have two seperate state functions?
[4] java - Getting an error while building strings and adding them to an ArrayList
[5] amazon web services - AWS Lambda read a file in the S3 bucket using python
[6] Nodejs接口不支持https怎么解决?
[7] antd 修改某一页面的主题色怎么做到呢?
[8] @ManyToOne如何更新主键
[9] mysql 按照分组的进行limit限制
[10] oracle数据库,如下代码,其中有一个变量携带的是clob类型的数据,如何插入数据库呀?
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
广告位招租
...