2,783 questions
0
votes
0
answers
38
views
Detail View on a different View Controller not showing after selecting a map pin possibly because of a Task block Swift [duplicate]
When I press on a map pin, the detail view on a different View Controller for the selected restuarant’s pin is not shown. I think this is occurring because of the Task block I'm using.
Its an iOS ...
0
votes
2
answers
81
views
Executing flow of the request in swift
I have three function inside the repository class . I am calling the function in order first createUser, then submitApplication and finally submitMemorableWord function . Condition is if the ...
-3
votes
1
answer
43
views
A viewcontroller(vca) and another vcb, I need to add vcb.view to vca.view as a subview
Here is a viewcontroller(vca) and another vcb, I need to add vcb.view to vca as a subview.
but I did not use addChildViewController, instead, I directly calls [vca.view addSubview:vcb.view], and vcb's ...
0
votes
1
answer
30
views
Why will updateScore function in viewcontroller not call from gamescene
So I'm trying to make it so an ad will pop up every time the score in game scene reaches a certain point in my game in Xcode using Swift but it's not calling the function that does that(...
0
votes
0
answers
56
views
View controller property layout top of each other
I have two view controller . In first view controller I have table view with cell and search bar on top . The second view controller I have back button to go back to first view controller. The problem ...
-1
votes
1
answer
121
views
Rendering two view controller content into single view [closed]
I want to display two view controller content into single view. I have created a common view controller and add two view content controller as child view inside the common view. But the problem when I ...
0
votes
1
answer
67
views
How to open the desktop version of a link but using SafariServices
I want to open the desktop version of a link using SFSafariViewController. I have found solutions for how to use SFSafariViewController and separately for how to open the desktop version of a link but ...
0
votes
0
answers
51
views
When creating a viewController in Facebook ShareDialog, there is an error "Type of expression is ambiguous without a type annotation"
everyone,
Because SwiftUI doesn't work with ViewControllers, I create one for facebook sharedialog. But there is an error "Type of expression is ambiguous without a type annotation". What's ...
0
votes
0
answers
42
views
Swift - Dismissing UIAlertController Not Working When 'No' Button is Pressed
In my Swift iOS app, I have implemented an UIAlertController to display a message with "Yes" and "No" buttons. The "Yes" button correctly resets the game, but when you ...
0
votes
1
answer
137
views
Change Notification Content Extension Interface Size Xamarin iOS
I've implemented a notification content extension in order to get action buttons to show up properly in my app. All I need for my notifications is the default header and the action buttons, no ...
0
votes
1
answer
52
views
push VC while dismissing previous two presented VCs
I have VC1 that is in navigation controller, we are presented VC2 from VC1, then VC3 from VC2. When I click button in VC3, I need to dismiss VC2 and VC3, after which push VC4 to the VC1
So this
VC1 (...
0
votes
1
answer
207
views
Collection View[Error] Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value [duplicate]
I am creating collection-view with screen transition and then An error which is "Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value". I have attached ...
0
votes
0
answers
1k
views
Cannot find type 'ViewController' in scope. dont know how to do
i find cant use vc to transfer data from one viewcontroller to another, the warning error is
'Cannot find type 'ViewController' in scope'
in my second view controller i have
func ...
-1
votes
1
answer
131
views
Programmatically opening a window in Swift 3 MacOS
I want to open a window programmatically because I need to send a variable to the window as it is opening. MacOS.
I have created a new window controller and a new view controller. Both are called from ...
0
votes
1
answer
195
views
Swift 5 crashes due to memory error at 400MB used memory
I have a learning app where I chain multiple ViewControllers together using the function:
let main = UIStoryboard(name: "Main", bundle: nil)
weak var levelCompletedViewController = main....
0
votes
1
answer
27
views
The data I entered in the TextField does not transfer to another label
Hello guys can you help me, I have an app that has two ViewController and in the first VC I have four empty TextField and at the second VC I have four empty Labels that should receive new information ...
0
votes
1
answer
69
views
Remove view called by method after changing ViewController
I have an extension ViewController for showing toast view.
It should be added to parent view, then slide from top or bottom of screen and after delay slide back out of screen and be removed from ...
0
votes
1
answer
87
views
Xcode: instantiating a view controller with custom variable
So I want to instantiate a view controller from storyboard and change its static variables.
This is "vc1" - the view controller to be instantiated:
import UIKit
class vc1: UIViewController {...
0
votes
0
answers
215
views
UIkit back to root navigation view controller programmatically
my problem is somewhere in my app I want to redirect my root navigation view
but I didn't.
in my scene delegate
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options ...
1
vote
1
answer
850
views
How do I create multiple collection views with the same behavior in one view controller?
I'm making an app where users can upload photos of different types of clothing items and have it be displayed in a collection view. Users can click on a button from a drop-down menu to tell the ...
-1
votes
1
answer
1k
views
Value of type 'View Controller' has no member?
I am currently making an ar app using swift and Xcode. I was trying to set up a variable to check if a button was already being pressed. I have created the variable in the format I have seen other ...
0
votes
0
answers
140
views
How to display a UIViewController after auth request in swift UI?
I am trying to present a view controller after an auth request by passing in a view controller type into authState argument in SwiftUI View. "Cannot convert value of type 'MainView' to the ...
0
votes
0
answers
196
views
How do I set the initial first responder per view in a cocoa app that switches between different views?
My Cocoa App uses one ViewController. I do not use the InterfaceBuilder On app launch a view will be created and the user can do stuff. When clicking a specific button the VC (as the view's delegate) ...
0
votes
1
answer
532
views
PickerView in custom cell delegate where my tableVIew is
I want to implement picker that is in my custom cell, in my VC that has the tableView, I can't figure out how to reference that specific picker (because I have other 2), so if I try to make a switch ...
0
votes
2
answers
34
views
Why when I create normal Segue to show the next ViewController it make it like this in the leagueVC Not a fullscreen?
Why when I create normal Segue to show the next ViewController it make it like this in the leagueVC Not a fullscreen ?
I want yo show the next screen as fullscreen by using the segue