swift tag

599 questions


1 answers
37 views
0
No audio played

The other day, I wrote a program for audio playback, but it doesn't play.Thank you for pointing it out.import UIKitimport AVFoundationclassViewController:UIViewController { varplayer —AVAudioPlayer? l...

2 years ago

1 answers
110 views
0
How to use TableViewCell when using TableView on Swift

Please tell me how to use multiple TableView Cells when using TableView on Swift.As an image, I would like to display two different cells in one table.As for the atmosphere, I would like to display th...

2 years ago

1 answers
36 views
0
I was trying to upload an image in Swift Storage while trying to import FirebaseStorage, but I got an error Type 'Storage' has no member 'storege'

Attempting to save the image Type 'Storage' has no member 'storage' error when set to let storageRef=Storage.storage().reference().child(profile_image).child(fileName).I have imported the Firebase mod...

2 years ago

1 answers
118 views
0
Determining which files are selected from the album in the imagePickerController delivery.

I'm a beginner, when I select a file from the album on my device.How do I describe the file when I determine whether it is an image or a video within the imagePickerControlle delivery?We assume the fo...


1 answers
87 views
0
I don't know how to cast uint8_t on Swift.

uint8_t*buf=(uint8_t*) [characteristic.value bytes];_textField.text=[NSString stringWithFormat:@%d, buf[0]];I'd like to write this Objective-C code on Swift, but I don't know how to write it well.I wo...


1 answers
93 views
0
About contact identifier

I'd like to create an app that uses coredata linked to the contact identifier to extend my contact information, but will iTunes maintain the identifier after backup and restoration to other devices?I ...

2 years ago

1 answers
122 views
0
I want to implement an action that starts when the camera screen switches after shooting.

When you press the button, the camera starts, and when the camera screen is switched to the main view, the image you are adding to the view disappears.I'd like to make it a specification, but it doesn...

2 years ago

1 answers
71 views
0
Understanding How to Switch the Return Destination of the Segue

There are screens A, B, and C, and I would like to use the segment on the Storyboard for screen transition.The transition is  ·Screen A→C ·Screen B→Cis available.At this time, when I press the back bu...

2 years ago

1 answers
45 views
0
Understanding UICollectionView Headers

Using UICollectionView, we implement screens with multiple sections.We use UICollectionViewFlowLayout customized to make cell sizes variable.To display the header, the recognition is to set the follow...

2 years ago

1 answers
93 views
0
Understanding How UserDefault Stores an Array of Strings

UserDefault saves the array of Strings and tries to reload it.However, when I read it, it gets nil and the application drops due to an error.I'm trying with code on Playground, but please tell me how ...

2 years ago
« - 25 - »

© 2024 OneMinuteCode. All rights reserved.