swift tag

599 questions


1 answers
86 views
0
Want to capture iOS device posture at an angle

I want to get the posture of the iOS device from the gyro, but I don't know how to do it.I looked it up and found out that http://qiita.com/yimajo/items/49bd534e8c257294a2e3This article is closest to ...

2 years ago

1 answers
45 views
0
I want to use the control bar when playing video on swift3.

I'm playing video on swift3.I would like to display the default control bar and seek it, but I tried to move the sample code like the one below.I can't display the control bar even if I tap the video....

2 years ago

1 answers
104 views
0
I want the button not to react when I swipe.

The iOS app implements a UI that scrolls vertically like a Twitter timeline.When you attempt to scroll vertically with a vertical swipe, if you swipe the area of the button on the UI, the button tap e...

2 years ago

1 answers
148 views
0
StringIndex advance method fails to compile

// Load Foundation Frameworkimport Foundationvar str = New power of String!// substringFromIndex cannot be used without Foundationbecome str.substringFromIndex(advance(str.startIndex,4))) // power of ...

2 years ago

1 answers
101 views
0
Control view hierarchy when viewController is different

The UITabBarController maintains a subView of the viewController.I would like it to be displayed before the subView of the UITabBarController view.Layer.zPosition, blingSubviewToFront:, etc. are not r...

2 years ago

1 answers
112 views
0
Swift3 compilation error

import Foundationfunc stdWeight(hegihtCm height:Double, #bmi:Double) - > Double { return power(height/100.0,2)*bmi}let height = 180.0let w1 = stdWeight (hegihtCm:height, bmi:22.0)print(The standard...

2 years ago

1 answers
134 views
0
About Swift protocol compliance (for example, unknown classes such as Java)

Hello I'm sorry to ask you something I can't do, but I'm having trouble because I don't know how to implement the protocol.I would appreciate it if someone could reply.For reasons such as containerVie...

2 years ago

2 answers
102 views
0
Please tell me about generating fetch conditions for Float values.

How do you generate fetch conditions for Float values?The condition setting for the Ingteger value yielded the expected result, but the condition setting for the Float value did not yield the expected...

2 years ago

1 answers
77 views
0
CCannot use instance member.... エラー error while creating table view

While creating a table view that displays the date and cell check items in the section, the tableData definition displays the error Cannot use instance member'checkListItem1' with in property initiali...

2 years ago

1 answers
99 views
0
Result is sent even if MFMailComposeViewController fails to send mail

I tried to open a mailer in the app using the MFMailComposeViewController and send an email, but it didn't work, so I asked this time.The code that you think is relevant is as follows.However, if you ...

2 years ago
« - 9 - »

© 2024 OneMinuteCode. All rights reserved.