swift tag

599 questions


1 answers
244 views
0
Swift does not invoke the viewWillAppear method.

Thank you for your help.There are screen A and screen B, and screen B is placed above screen A. When you POP screen B, use the viewWillAppear() method on screen A to I would like to process it, but th...

1 years ago

1 answers
355 views
0
Is there any way to prevent the system shortcut key (Shift+Cmd+4) from working when entering text on a Mac?

In macOS 10.15, we are creating an application (Swift) to capture text (TextFilet) keystrokes, but if you press the key that is registered in the shortcut key on the system, the shortcut functionality...

1 years ago

1 answers
281 views
0
I want to use indexPath.row in realm swift.

As per the title, I want to use indexPath.row, but the property I want to use is .self, so I can't use it.private values=Results<Tweet>?.self{ DidSet {collectionView.reloadData()}}I want to dis...

1 years ago

1 answers
395 views
0
I want to store JSON's response

I would like to display JSON's response as String type in TableView using Codable as a structure.var movies=MovieStruct() Missing argument for parameter 'from' in call (insert 'from'<#Decoder#>)...

1 years ago

1 answers
287 views
0
Is there a way to detect the uninstallation of my app on my iPhone?

I saw that Android is possible by receiving a package deletion Intent notified by Broadcast.Please let me know if there is a way to detect the uninstallation of your own application on the iPhone.[Wha...

1 years ago

1 answers
288 views
0
Two Swift custom cells

I would like to add two custom cells from different VCs on Swift.Tab-Navi-List (UIVC) and two other Post Fols, both of which are UIVCsHow should I write it on the list that displays custom cells? func...

1 years ago

1 answers
45 views
0
Swift screen transition does not work as intended

I'm writing the code for the screen transition with swift, but it doesn't work.Feature you are trying to implement: Tap the button placed to the right of navigationbar to push transition.Result: No er...

1 years ago

1 answers
109 views
0
How to take a screenshot

I would like to take a full screenshot of TextView, but even if I scroll through TextView, I would like to take a screenshot of the parts that I can't see, but I can't see the parts that I can't see i...

1 years ago

1 answers
63 views
0
I would like to obtain Japan time from the Date class.

I set Japan time for the Date class as the code below.let dateFormatter=DateFormatter()dateFormatter.timeZone=TimeZone(identifier: Asia/Tokyo)dateFormatter.locale=Locale(identifier: ja_JP)dateFormatte...

1 years ago

1 answers
120 views
0
XCTest Does Not Call `setUp`

I am trying to do an XCTest, but neither setUp nor testExample are called in the code below.import XCTestclass HogeTests:XCTestCase{ override funcsetUp(){ // Put setup code here. This method is calle...

« - 4 - »

© 2024 OneMinuteCode. All rights reserved.