Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
37 views

Share Audio (MP3) to WhatsApp with text using UIActivityViewController

I'm trying to share an audio file (MP3) using UIActivityViewController. While the audio file is shared successfully, the accompanying text message I'm adding does not appear in the message. It only ...
Roi Mulia's user avatar
  • 5,836
1 vote
0 answers
66 views

SwiftUI Sheet embedded in a ViewController does not slide away with VC in iOS16

In iOS17, I have the expected result: When popping the ViewController (SecondVC), the sheet goes away together with it. In iOS 16 however, the sheet stays in place and dismisses after the VC dismiss ...
Adriano's user avatar
  • 526
0 votes
0 answers
10 views

How to tell if a UIViewController's view is visible after it presents another UIViewController with UIModalPresentationOverFullScreen style?

I have ViewControllerA, and it presents ViewControllerB with UIModalPresentationOverFullScreen style because ViewControllerB has a clear background color and I want to see part of ViewControllerA's ...
P. Tsin's user avatar
  • 547
-2 votes
1 answer
43 views

How to dismiss a specific UIViewController on the backstack without dismissing other UIViewControllers? (UIKit) [closed]

I have several UIViewControllers that I present programmatically with modalPresentationStyle = .fullScreen. My stack of UIViewControllers looks like this: ViewControllerA -> ViewControllerB -> ...
BlueBoy's user avatar
  • 846
0 votes
0 answers
45 views

How to Get the Top-Most View Controller in iPad with Multiple Scenes (UIScene) in Swift?

I have an existing method to get the top-most view controller in iOS applications without multiple scenes, which works perfectly for single window applications on both iPhone and iPad: extension ...
Rehan Ali Khan's user avatar
0 votes
1 answer
48 views

Application forgets current View Controller and tableview after alert controller tapped in Swift

I am running into issues where my app seems to forget the current View Controller and its properties--namely a tableView--after launching an AlertController with Action methods. For example, after ...
user6631314's user avatar
  • 1,868
-1 votes
1 answer
91 views

UIViewController.presentModalViewController hangs indefinitely

I have 3 view controllers, VC1, VC2, and VC3, that are instantiated when the app starts. I want to present them modally in a loop, like this: VC1 -> VC2 -> VC3 -> VC1 On each view controller,...
wonder-mike's user avatar
0 votes
1 answer
59 views

What is the correct approach of Unit Testing in iOS?

class RemoveMyDataConsentFormVCTests: XCTestCase { var viewController: RemoveMyDataConsentFormVC! override func setUp() { super.setUp() let storyboard = UIStoryboard(...
Farhaj Ahmed's user avatar
0 votes
1 answer
96 views

Setup the constrains between the UIView and UIViewController

I want to add view controller as subview inside the UIView . I have given the required constrains but I am not figure it out why it overlapping . Here is minimal code for it. I have given the top , ...
Nar's user avatar
  • 85
0 votes
0 answers
46 views

Children view controllers must have a common parent view controller in swift

I have created one container view . Here I'm adding two view controller content into single view controller. I am rendering the view based on the different state but I want to combine both view ...
Nar's user avatar
  • 85
0 votes
2 answers
116 views

Adding two UIView vertically

I have two UIView and I want to add detailsView as subview with other view. I am getting following error: Cannot convert value of type 'MovieDetailsDisplayViewController.detailsView.Type' to expected ...
Nar's user avatar
  • 85
-1 votes
1 answer
67 views

How to delete UINavigationController's space programmatically using Swift?

When I redirect to a page from UINavigationController, the destination page shows the contents of the Navigation Bar with more space above than expected. How can I fix this situation? ...
yasin kabak's user avatar
0 votes
1 answer
208 views

How To: Simple UIViewController w/ .xib using XCode15

I'm having issues creating a simple UIViewController in XCode15. I want to create a .xib and accompanying .swift file as a controller. Things seemed to have changed and I can't create a ...
Chris Allinson's user avatar
0 votes
1 answer
80 views

How to fade up initial root view controller to reveal new background root view controller

I have 2 root view controllers that I need to animate (slide up/fade) between. When I press a button on viewControllerA, viewControllerB should load itself in the background and set itself as the root ...
ArtisticEndeavor's user avatar
0 votes
1 answer
134 views

Can't make changes in View from Controller

I'm trying to create my first MVC project, which will check code phrase and open access to user. I've created 3 files: Model - checks if the code phrase is correct and returns a result that is used ...
neuraldag's user avatar

15 30 50 per page
1
2 3 4 5
767