uistoryboard

Storyboard reference on iOS below 9.0

纵然是瞬间 提交于 2019-12-23 10:58:41
问题 I am playing with new Storyboard references. According to Apple documentation minimum requirement for iOS is version 9.0. However, I have successfully deployed test app with simple show segue between two storyboards inside same app connected with Storyboard reference to iOS 8.3 device and Simulator with iOS 8.0. Is documentation wrong, or I am missing something obvious? 回答1: It's backwards compatible to 8.0 with the exception of relationship segues. See the release notes for Xcode 7

How to share a UIManagedDocument using Storyboards with a Tab Bar Controller as initial controller?

只谈情不闲聊 提交于 2019-12-23 10:57:09
问题 My application uses locations data and presents it both as a table and in a map. It starts with a Tab Bar Controller, each of it's views is a Navigation Controller (one for the table view, one for the map, etc...). I want to share a UIManagedObject in order to use the same Managed Object Context so if the user updates at the table view, the data also gets updated for the map, so there is no need to update twice. Originally i thought of subclassing the Tab Bar Controller and adding a

IOS Segue - Terminating app due to uncaught exception 'NSGeneric Exception'

你。 提交于 2019-12-23 03:50:50
问题 Storyboard screenshot In the Xcode 4.6 Storyboard i've 2 ViewControlers, one which holds the buttons and the other a labelView, passing a string "Home Tapped" on the tap of the home button Heres the ViewController.m code #import "ViewController.h" #import "ViewController2.h" @interface ViewController () @end @implementation ViewController -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if([segue.identifier isEqualToString:@"Home"]) { NSString *message = @"Tapped on home"

MGSplitViewController using Storyboards

丶灬走出姿态 提交于 2019-12-23 03:31:42
问题 I have been working on this for some time now and just cant quite get it to work... Has anyone implemented a MGSplitViewController app using storyboards in iOS 5? I just cant get anything to show up like in the example project and was wondering if there were any tutorials or just steps to getting this to work... Thanks 回答1: iOS 5 allows you to custom create View Controller containers . Refer to "Implementing UIViewController Containment". They have a sample project demo, but not sure if they

iOS 7 status and navigation bar different height in storyboard than in app

眉间皱痕 提交于 2019-12-22 09:06:45
问题 This is a view controller than is modally presented and therefore full screen. In the storyboard, the "top layout guide" is at y:64 . That is what I would expect when the status bar is height:20 and navigation bar is height:44 . However, when the app runs, the "top layout guide" is y:52 . I have no idea how or why it's losing 12 points. 回答1: When you use Apple's Navigation controller which inserts a navigation bar, it will have different heights based on your orientation. For example, the

Rotate (angle) a UIView, using User Defined Runtime Attributes

徘徊边缘 提交于 2019-12-22 04:01:54
问题 Is it possible to rotate a UIView or UIImageView, say 10 or 15 degrees, actually using User Defined Runtime Attributes? Or can it only be done in code? (Note .. I mention "angle" and "by degrees" for the sake of google; it can get mixed-up with the idea of "rotating" for device orientation change.) Alternately, could you perhaps subclass UIView in such a way that, a User Defined Runtime Attribute would be exposed, which does just this? (I'm rusty :/ ) 回答1: You can use layer.transform.rotation

Child content view controller view has wrong bounds size from Storyboard?

筅森魡賤 提交于 2019-12-21 17:07:32
问题 This document outline from my sample Storyboard shows what I'm working with. I have a custom container view controller and two content view controllers connected via embed segues. Here is the storyboard itself. ZetaViewController has to create some programmatic views (within ZetaView, of course). I noticed when I was centering these programmatically created views they seemed really off center. ZetViewController is centering things by examining self.view.bounds.size.height and self.view.bounds

Storyboard - Position is ambiguous for “Round Style Text Field” Warning

蹲街弑〆低调 提交于 2019-12-21 16:49:08
问题 https://stackoverflow.com/a/16251810/2589276 I solved the problem above but got a new problem when I did the steps I was instructed to. Now I get a warning saying: Position is ambiguous for "Round Style Text Field" I tried setting fixed constraint for width also, but did not fix this warning. Any ideas? Are there any other information I should give for this problem? This screen shot when I do add constraint to x, leading space constraint (for x) and vertical space constraint from the bottom.

iOS: Storyboard CollectionView segue not being triggered

◇◆丶佛笑我妖孽 提交于 2019-12-21 09:24:46
问题 I have a UICollectionView controller embedded inside a navigation controller. The collectionView lists projects and each cell is supposed to segue to a ProjectDetail screen. I simply cannot get the segue to trigger. If I simply drop a button on the nav bar and hook up a segue to the detail, it works. But triggering from my CollectionView cell doesn't. Here is what the storyboard looks like: http://cl.ly/RfcM I do have a segue hooked up from the CollectionViewCell to the

Segue between two view controllers

末鹿安然 提交于 2019-12-21 07:13:12
问题 On my storyboard (shown above), I have a ViewController which holds an MKMapView with annotations. These annotations hold a disclosure icon, which when tapped, should navigate the user to another ViewController. To do so I've created a push segue between the view controllers. I've then given it an identifier of 'showDetail' and implemented the following code. - (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control { [self