viewcontroller Questions
8
Solved
I'm using following code to programmatically navigate to another ViewController. It works fine, but it some how hides the navigation bar. How do I fix this? (the navigation bar is created by embedi...
Excursion asked 12/9, 2016 at 12:17
7
First of all, this isn't a duplicate. I've looked at all of the questions related to this on SO and none of them work for me. Hopefully it's just because I'm new to iOS development but I suspect th...
Rath asked 19/1, 2014 at 12:12
12
FinalViewWithSending *newView = [[FinalViewWithSending alloc]initWithNibName:@"FinalViewWithSending" bundle:nil];
newView.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentM...
Delisadelisle asked 30/3, 2012 at 21:59
3
Solved
I have a simple problem that I cannot find a solution to on google, the docs or here.
I have a Collectionview in my view controller. I have created a custom cell, DescriptionCell, that contains a ...
Quinacrine asked 30/9, 2016 at 20:21
5
Solved
I have system "NavigationViewController -> MyViewController", and I programmatically want to present MyViewController inside a third view controller. The problem is that I don't have navigation bar...
Firth asked 22/8, 2014 at 9:51
4
Solved
I am creating my first simple budgeting app. Basically, I take a few user inputs like monthly income & savings goal. Then they click "start", & the app calculates stuff such as, their daily...
Curie asked 10/3, 2018 at 6:5
5
Solved
using the following code in the parent ViewController, I want to present a second view ontop of the first, then dismiss the first:
// Animates the next questionViewController using the first quest...
Sunflower asked 7/3, 2012 at 12:43
4
I just upgraded Xcode to 5.0. I'm still fairly new to cocoa so I hope I'm overlooking something basic. Basically I can't get Xcode to see the custom classes that I want to use as parent classes for...
Rawdin asked 29/9, 2013 at 14:10
2
Solved
there are different conditions for same design file. i can't use if-else in same class file to differentiate them. because manage all conditions are difficult. is there any way to change class at d...
Eelpout asked 14/3, 2018 at 5:43
3
Solved
I need to compare if two views are the same, I am getting the views like this
let viewController = navController.viewControllers[navController.viewControllers.count - 2]
let newController = self...
Crowned asked 7/8, 2018 at 23:25
6
Solved
I am making an IOS app where i am calling an API in viewDidLoad method of view controller. Now i want to reload the same view controller with the data that comes from server. How many ways are ther...
Loathly asked 9/11, 2015 at 10:28
5
Solved
I finished my iOS app but I need to set only ONE view to landscape mode, the rest of the views can only be seen in portrait mode.
I'm using Xcode 5.1 and I created all of my Views by dropping in m...
Reginaldreginauld asked 24/7, 2014 at 7:54
3
Solved
So me and some friends working on a bitbucket project and already realized that bitbucket sometimes doesn't sync all the files. But here is what happened:
I continued working and created an class,...
Yemane asked 17/1, 2016 at 22:56
7
Solved
I'm really struggling with this basic iOS programming stuff but I just can't figure out whats happening and how to solve it.
I have my main Login controller that detects when a user is logged in a...
Gatha asked 3/5, 2018 at 17:20
4
I have created a simple tab bar with three views in storyboard. The tab bar works well, but when I try to show another view controller from a button within a tab, the new view is placed over the wh...
Spectrum asked 25/10, 2017 at 18:45
2
Solved
I am new to Swift and I want to know how to dismiss the current view controller and go to another view.
My storyboard is like the following: MainMenuView -> GameViewController -> GameOverView. I w...
Pilchard asked 11/8, 2015 at 22:17
4
I would like to write in the text or csv (prefer) file the variable from the view controller.
Indeed I am doing a drawing app and I would like to write in the file the current position of the fin...
Ashraf asked 23/6, 2015 at 8:55
2
Solved
I'm just starting out in xCode 6, and I can't seem to figure out how to add a new swift-file to the new view controllers I add in the interface builder.
Any tips on how to proceed would be apprec...
Priorate asked 16/11, 2014 at 22:18
2
Solved
I am developing a tabbed application.
When I create a new view controller and link it to the tab bar controller, unlike the other two default view controllers, this one has no viewcontroller.swift...
Fourhanded asked 18/2, 2015 at 15:42
2
I have inserted a table view on my view controller and I was wondering how can I give the cells in the table view a gradient background? Can I edit each cell individually to give it a different col...
Lewes asked 5/8, 2017 at 3:54
3
Solved
Is it typically bad programming practice in iOS to have a nested view controller's view inside UIViewController's view? Say for instance I wanted to have some kind of interactive element that respo...
Lobo asked 6/7, 2013 at 3:28
3
Solved
My issue is this I have two viewControllers connected with a modal segue like normal A--->B, A has the controls like textFields, switches, buttons and a mapView where I get the userLocation. B hast...
Welkin asked 26/1, 2017 at 0:15
4
Solved
I am getting the following error whenever I try to switch views like this:
-(void)changeView1ToView4 {
[self.navigationController1 pushViewController:view4 animated:YES];
}
This doesn't happen ...
Acquah asked 11/9, 2011 at 18:22
1
Solved
Is there any way instantiateViewController without using storyboard ? I did not use storyboard.
Highminded asked 22/4, 2017 at 15:38
3
I'm a newbie in Swift and i have a problem locking the orientation to portrait in a viewController. Actually i have locked it using this code in my Custom Navigation Controller
override func suppo...
Interment asked 15/5, 2016 at 16:52
© 2022 - 2024 — McMap. All rights reserved.