Tagged Questions
0
votes
0answers
11 views
Preview of a view controller in another view controller?
I'm looking to create a 'homepage' for my app that shows a preview of each of the three other view controllers that the app has, and that when I tap on the preview it takes me to that view.
I was ...
1
vote
2answers
35 views
iOS - UIViewControllers sharing a screen
I'm writing an app that has two sections like this:
The idea is that on the top half I'm creating a request, and on the bottom I'm displaying the results. As my UIViewController subclass grows and ...
0
votes
1answer
35 views
why IB sometimes doesn't add a subview to a view controller
Sometimes IB simply doesn't allow you to add a view as a subview to a UIViewController as illustrated here
If I drag a UIViewController from the object library and try to embed it within Mailbox ...
1
vote
1answer
38 views
Xcode Storyboard Organization and Duplication of Effort
You can see that the segues are a mess of spaghetti. To make sense of it, here are some possible paths that a user could take:
Tap a row in TopPlacesTVC --> Tap a row in PhotoSelectorTVC --> ...
0
votes
1answer
42 views
Not able to drag scrollview object in interface builder
I'm using XCode 4.6 and interface builder. I've got a UIViewController in interface builder, and a UIScrollView on top within the UIViewController. The scroll view completely spans the view controller ...
3
votes
1answer
258 views
Switching between 2 view controllers on same storyboard, on rotation using willAutorotateTo… not working,
im having a little problem here. I have two view controllers on same storyboard (MainStoryboard -> Calc view Controller in portrait mode and Calc view controller in landscape mode). When i have ...
0
votes
0answers
20 views
Are there differences in memory cost between a view controller created in code and one created via storyboard/interface builder?
I'm happy with the speed at which my tabbed application is running with four view controllers created in Interface Builder with storyboard. Would it run any faster if I created the view controllers ...
0
votes
0answers
46 views
Is changing the class type back after loading from storyboard dangerous?
Let's say I have a storyboard scene that has a UIViewController in it with its custom class set to ParentViewController. I'd like to create a ChildViewController that does almost everything the same ...
0
votes
0answers
67 views
UINavigationController getting view frame has no x/y value
I have a navigation controller which contains a scroll that I have setup via interface builder, within this I have placed a UIImageView (with a horrible image for demonstration purposes). Please see ...
-2
votes
3answers
315 views
IBOutletCollection of UIViewControllers
I want to do something like UITabBarController. UITabBarController has property viewControllers into which I can add instances of UIViewController * in IB. I'm trying to do the same think with my own ...
0
votes
1answer
243 views
Designing popovers in Interface Builder
I have created a navigation controller and its child controllers in storyboard (Interface Builder). These controllers are being presented inside a popover only.
The bar button which will present the ...
0
votes
2answers
173 views
How to create a small view in IB for modal presentation
I am trying to create a small popup view in IB for modal presentation on the iPhone and the view height and width is grayed out and set to 320x480 in IB. Is there a way to do this? I've tried various ...
0
votes
0answers
120 views
iOS/IB view layout template/inheritance guidance needed
This is a "sort-of" question, that I am just hoping some astute individual can give me some guidance on.
I have an iOS project that has numerous screens (ViewControllers) that all share a top and ...
0
votes
2answers
388 views
How to initialize a custom view(controller) so it works both programmatically and in Interface Builder?
Suppose you implement a custom table view and a custom view controller (which mostly mimics UITableViewControllers behaviour, but when initialized programmatically, ...
@interface Foo : ...
2
votes
1answer
730 views
How to set programmatically topBar and bottomBar parameters of UIView?
In the interface builder there are few parameters for UIView of UIViewController:
topBar, bottomBar, ...
interface builder parameters of view
What happens when i set Navigation Bar value for Top ...
0
votes
2answers
412 views
How to reference views programmatically without using IBOutlet
I am new to iOS programming and I am working with XCode learning storyboards. My question is
I have added the views that I want using the IB but I dont want to them to connect to my ViewController ...
0
votes
0answers
69 views
Manage multiple UIView belonging to one UIViewController with Interface Builder
I have an authentication UIViewController with which I would like to manage 2 views: Registration and Logging In. I do not want to use multiple UIViewController because I consider that the two views ...
0
votes
2answers
105 views
Universal App: Should I extract shared Views to their own storyboard
I have an universal App with two storyboards:
iPhone.storyboard
iPad.storyboard
Now I have views or "view-trees" that are present in both the iPad and iPhone. Should I create a ...
3
votes
4answers
2k views
IB - Can't assign class for a View Controller
I'm quite new to IOS developpement, and I'm facing a problem here that I haven't encountered before. Here's what I have :
I created a project, added some ViewControllers attached to their own ...
0
votes
2answers
107 views
How to define an outgoing event from subclassed UIView so any delegate in UIViewController can be called
I have derived my own View class from UIView that handles gestures and drawing itself.
I use Interface Builder to place several instances of it on a View.
On certain events, I want to call several ...
0
votes
1answer
442 views
Why view size is 703x768 for iPad app in Interface Builder?
Im working on my first iPad app.
By default Xcode generated for me a starting point project, which contains the basic template for the Split view controller.
I am focusing on the detail view ...
0
votes
0answers
65 views
IB created view controller doesn't display in programmatically tabbarcontroller
I am subclassing my tabbarcontroller like this (idevrecipes, instagram like tab bar)
problem is : I want to display ViewControllers that I can design both with IB and a .h & .m. So created my IB ...
0
votes
1answer
106 views
Outlet from NIB not loaded until view is displayed
My application has a main nib defined in the info.plist.
This nib includes a UIViewController object. In IB, in the attributes inspector, I specify a NIB name with the view for this controller.
I had ...
0
votes
0answers
174 views
Swipe Gesture using push not working, but buttons do
I am trying to build a simple application and have used only Interface Builder to get this far. I have created a Navigation Controller but have hidden the Navigation Bar. On my first View Controller ...
0
votes
2answers
486 views
Xcode Crashes when adding UIViewController in Interface Builder
I was in Xcode and I went to edit a nib file. I tried to drag on a UIViewController from the objects library, but as soon as I did Xcode crashed. I had never had this problem before, but now I cannot ...
0
votes
2answers
94 views
SIGABRT after clean project xcode
My code was working fine for days and weeks of code changes and running on my iPhone 5.0 simulator until I cleaned it.
Now it dies on this line [window addSubview:self.viewController.view];
- ...
4
votes
3answers
693 views
Where to build views programmatically vs using a nib
I have searched around a lot, and dug through a couple of text books, but what I would really appreciate is a simple explanation of best practice to define UIView subclasses in an iOS app.
If using ...
0
votes
0answers
175 views
Adding navigation item through XIB File's Owner
When creating a XIB file in Xcode I always get the File's Owner, which I can set the class to whatever ViewController I like.
Although, I've noticed I can't add a navigation item or bar button item ...
0
votes
1answer
747 views
XCode: can't drag/drop UIView onto a UIViewController in interface builder
In the master-detail application template for iPad in XCode 4.3, the master view (side pane navigation menu) extends a UITableViewController. I instead want it extend a UIViewController and make use ...
1
vote
1answer
654 views
how to connect to IBOutlet or IBAction in base class
I have a base viewcontroller class (inherits from UIViewController) and an inherited class from the base viewcontroller class. Now i have a nib whose file owner is the inherited class but all my ...
13
votes
2answers
3k views
Do I have to call addSubview after calling addChildViewController?
I'm trying to create a container view controller using iOS5 and new methods like addChildViewController.
Do I have to call addSubview after calling addChildViewController?
Do I have to call ...
3
votes
2answers
497 views
iOS - Interface Builder Outlets Not Initialized
I have created a view in Interface Builder with some labels and text as IBOutlets. I can view this screen perfectly when I segue to it from another view that I have defined in my Storyboard.
However, ...
1
vote
1answer
48 views
Advantages Creating a viewcontroller in IB vs calling a view controller progrmatically
I'm struggling to understand the advantage of using the orange circle view controller in IB over just calling the view controller needed in code.
Thoughts? Opinions?
1
vote
1answer
1k views
xcode interface builder - resizing or moving a view
I'm following the cs193p course on iTunes U, and all is going well until now.
I'm creating my iPad version of the graphing calculator and trying to add the toolbar to the iPad detail view so it can ...
0
votes
1answer
389 views
With Interface Builder create subview with own NIB and UIViewController
I would like to create a subview of an existing view, where the subview has its own XIB-file and its own ViewController. I know that is only a view lines of code programmatically, but I really want to ...
0
votes
1answer
118 views
View outside screen
I have a tab controller, which contains a navigation controller which again contains a view controller. The view controller shows a tab bar and a navigation bar.
In this view controller I want to add ...
0
votes
1answer
158 views
How do I push a view controller from a custom view action using storyboards/IB?
I have a navigation controller than manages a view with a custom component that does not show up on the storyboards/interface builder. When I trigger a particular action, I would like to push on the ...
0
votes
1answer
639 views
how to use multiple views in UIViewController
how can we create 2 views in same viewController? Here is a image for reference-
in this image there is 2 different views in single xib file. i have 2 different classes viewController1 and ...
0
votes
1answer
165 views
Object mixup between programmatically created view and interface builder placeholder
I have a view controller which contains a scroll view. Inside the scroll view there is another UI core graphics view. In the view controller I create a temp object for the core graphics view and ...
0
votes
2answers
171 views
Setup/instantiation of IB subview with custom class
I have a .xib file for my viewController. It contains a TableView and a UIView. The UIView is backed by a custom class - CommentsBarView (trying to position a small bar with a comments field ...
0
votes
5answers
373 views
How to access a UIView inside of a UIView
I'm new to iOS development and I was wondering if it is at all possible to access a UIView from within a UIView.
My current setup is that I have a main UIViewController with a UIView. Within that ...
3
votes
2answers
605 views
Using Interface Builder and storyboards to build relationships between controllers
Is there a way to use Interface Builder on a storyboard to establish relationships between controllers. e.g. similar to the way UITabBarController allows you to click-drag connections to other ...
0
votes
2answers
81 views
Putting a custom view on top of a view controller's base view, via IB
I have got a view controller with a UIView and a navigation controller configured in the XIB.
Now I created a custom UIView and would like it to be on top of the other view. So I added a view on top ...
0
votes
2answers
475 views
How to instantiate a UIViewController subclass from a xib?
I have a UIViewController with a UIView in interface builder. I can not for the life of me get it instantiated properly.
I am using:
LoginViewController* myViewController = [[LoginViewController ...
1
vote
1answer
355 views
iOS: How can I reuse UIViews built from a nib?
Situation:
ReusableView.h
ReusableView.m
ReusableView.xib
ViewController.h
ViewController.m
ViewController.xib
ReusableView is kind of basic template that I want to use as background across ...
0
votes
2answers
1k views
UIScrollView - How to position controls
I am pretty confused on how to position the controls on a UIScrollView that extends beyond the associated UIView.
I have a long form that needs to be filled out which is on one long UIScrollView. I ...
1
vote
1answer
188 views
What is the proper way to add a specialized UIViewController, such as a UIPageViewController in Monotouch?
Assuming I want to use a xib in interface builder, to add a UIViewController in Monotouch you can simply use the "Add new file" option in MonoDevelop and select it from the Monotouch templates.
What ...
10
votes
2answers
15k views
Linking a new viewcontroller to Storyboard?
There is probably a simple solution but I can't figure it out.
I am using storyboards for the interface.
I start with a tab bar controller, but before the user is allowed to use the app the user has ...
0
votes
1answer
325 views
viewDidLoad not being called when pushing UIViewController
I'm pushing a UIViewController like so:
UIViewController* individualsController = [[[UIViewController alloc] initWithNibName:@"IndividualsController" bundle:nil] autorelease];
...
0
votes
1answer
190 views
UIView alway show full screen in simulator although setting width and height to 320 x 320 px by Interface Builder
I try to show UIView of HomeViewController as modal of TabBarViewController.
I want UIView display over TabBar and there 's TabBar at bottom of screen.
Although, setting setting UIView of ...