2020欧洲杯手机版注册

A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [swift]

2020欧洲杯手机版注册Swift is a general-purpose, open-source programming language developed by Apple Inc. for its platforms and Linux. Use the tag only for questions about language features, or requiring code in Swift. Use the tags [ios], [ipados], [macos], [watch-os], [tvos], [cocoa-touch], and [cocoa] for (language-agnostic) questions about the platforms or frameworks.

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

iOS swift4.0 app lacks the sound of HLS video with #EXT-X-DISCONTINUITY between dual-mono and stereo

My video contains dual-mono and stereo, so I generate m3u8 with #EXT-X-DISCONTINUITY tag between TS of dual-mono and TS of stereo.In the past, my iOS app can play it correctly. No lack of sound. It ...
-2
votes
2answers
14 views

Swift: There is way to debug decodable object quickly

I have an object from 20 fields. When I get the json from the server I get an error about the decode of the json.There is a way to quickly find out which field is problematic instead of deleting all ...
-3
votes
0answers
19 views

How to create hot-spot in android and ios? [closed]

Can you give me a feasible solution between android and ios devices using wifi hotspot to sending and receiving data?
-3
votes
1answer
20 views

Value of type 'Category' (aka 'OpaquePointer') has no member 'name'

I'm working with Swift in Xcode and I receive the following error: -- Value of type 'Category' (aka 'OpaquePointer') has no member 'name' -- and I've looked everywhere but I can't find a solution....
0
votes
0answers
21 views

How to trigger an section update in NSFetchedResultsController

I am using NSFetchedResultsController to display a list of workouts grouped in sections with the date on which they were completed.Graphically it can be represented as this:JAN 20, 2020 Workout ...
-3
votes
0answers
21 views

SwiftUI doesn't like switch?

Trying to following this discussion, I implemented the suggestion of Yurii Kotov:struct ContentView: View {@State private var index = 0@ViewBuilder var body: some View { if index == 0 { ...
0
votes
0answers
9 views

'timedMetadata' was deprecated in tvOS 13.0: Use AVPlayerItemMetadataOutput to obtain timed metadata

I am new in TVOS please help me out with this type of warning. for iOS it is working fine but for TVOS it is giving warning like "'timedMetadata' was deprecated in tvOS 13.0: Use ...
-3
votes
4answers
33 views

Search for a value in two dimensional array

How do I search for the value "Mexico" in a two dimensional array below? // this is our array of arraysvar groups = [[String]]()// we create three simple string arrays for testingvar groupA = ["...
0
votes
1answer
37 views

Frame is not updating properly for UICollectionView as UITableViewCell Subview

I am putting UICollectionView in custom UITableView. The UICollectionView frame set to the contentView bounds but it's not taking it completely.CellForRowAtIndexPathif indexPath.row == 0 { let ...
-1
votes
0answers
27 views

Getting Time Out Error For the hacker rank question - Dynamic Array

I am trying to solve dynamic array problems on hackerRank. (link http://www.hackerrank.com/challenges/dynamic-array/problem). However, getting time out error for very large inputs. PFB my code in ...
0
votes
0answers
26 views

SwiftUI crashes with List element

I've build a tabbed app which consists of 4 tabs, but sometimes the app crashes unexpectedly. Digging deeper into the problem I found the following warning in the console: [TableView] Warning once ...
1
vote
0answers
25 views

Where does the logic go with SwiftUI compared to React?

The SwiftUI documentation is challenging to find out on what is actually happening on each render / when they occur / what is causing them (or I don't know where to look!)I'm trying to avoid ...
0
votes
0answers
26 views

How to submit a form in WKWebView Swift?

I've been trying to use WKWebView to fill in a webform and submit. So far I have been able to do that. The problem is the WebView form loop endlessly from "insert element, "trying to submit" to "...
0
votes
5answers
60 views

How to handle array in array

I would like to ask how to handle the below array as I'm confused with this problem few days.var testArray = [Dictionary<String, Any>]()print(testArray)Here is the log result:[["timestamp"...
-1
votes
3answers
38 views

Why does View Controller Shift in Storyboard on Button Segue

I am new to IOS App development and have a question. I'm trying to segue from one view controller to another. However, it seems that every time I ctrl+drag from the options button to the adjacent view ...

15 30 50 per page