uistoryboardsegue

Embed Segue - iOS 5

北慕城南 提交于 2019-11-30 14:20:55
问题 I've dragged a Container View onto one of my View Controllers. This comes with an Embed Segue. Running produces this: 'Could not instantiate class named UIStoryboardEmbedSegueTemplate' So from a couple other stackoverflow questions it seems this isn't implemented in iOS 5. However, the questions didn't suggest the fix. XCode won't let me use any other kind of segue. If the answer is to create a custom Container View I'll go with that. I've seen plenty of code for that in the past couple days.

Embed Segue - iOS 5

泄露秘密 提交于 2019-11-30 10:08:27
I've dragged a Container View onto one of my View Controllers. This comes with an Embed Segue. Running produces this: 'Could not instantiate class named UIStoryboardEmbedSegueTemplate' So from a couple other stackoverflow questions it seems this isn't implemented in iOS 5. However, the questions didn't suggest the fix. XCode won't let me use any other kind of segue. If the answer is to create a custom Container View I'll go with that. I've seen plenty of code for that in the past couple days. Just wondering if there was a way to do this using the provided Container View object. The problem is

Make button it UIAlertView perform Segue

时光总嘲笑我的痴心妄想 提交于 2019-11-30 09:17:33
I have created a UIAlertView for an action which gives me 2 options. I want the user to be able to click on a button and have it perform a Segue. Here's the code I have so far: - (IBAction)switchView:(id)sender { UIAlertView *myAlert = [[UIAlertView alloc] initWithTitle:@"Please Note" message:@"Hello this is my message" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:@"Option 1", @"Option 2", nil]; [myAlert show]; } - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { NSString *buttonTitle = [alertView buttonTitleAtIndex:buttonIndex]; if (

Xcode 4.2 iOS 5 : Multiple segues from a UITableView

别来无恙 提交于 2019-11-30 07:03:40
I'm starting now with Xcode on 4.2 for iOS5 and there are a few changes and I'm now crossing a problem that I can't figure out a way to solve it. I'm doing an example with a UITablwView that is populated programmatically with 2 Sections, 1st section with only 1 Row, and 2nd Section with 3 Rows. My aim is to select a row from the table, and based on that row, the user will be redirected to different Views. For example: selecting section 0 row 0, app pushes to view 1 - name setting // selecting section 1 row 0, app pushes to view 3 - address setting The old fashion way, this is quite simple,

Push segue from UITableViewCell to ViewController in Swift

混江龙づ霸主 提交于 2019-11-30 06:39:36
问题 I'm encountering problems with my UITableViewCells. I connected my UITableView to a API to populate my cells. Then I've created a function which grabs the indexPath.row to identify which JSON-object inside the array that should be sent to the RestaurantViewController . Link to my Xcode Project for easier debugging and problem-solving Here's how my small snippet looks for setting the "row-clicks" to a global variable. func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath:

How to segue with data from one Tab to another Tab properly

不打扰是莪最后的温柔 提交于 2019-11-30 05:59:53
问题 I have a Tab Bar Controller which is the Initial View Controller, which also has a PFLoginViewController that pups up if a user isn't logged in. The Login/Signup flow works fine. The two tabs are 1. a UICollectionView which I will refer to as IntroVC from now on 2. a UITableView which I will refer to as FeedVC When a user clicks a photo in IntroVC , a Show segue is triggered (via prepareForSegue ) that shows a 3rd screen ( UIView ) which is technically not a tab. I will refer to this as the

Getting reference to the view of a container view

三世轮回 提交于 2019-11-30 05:16:16
I am new to iOS App Development. I have connected a tableview controller such that when I select one of the rows I get another UIViewController using didSelectRowAtIndexPath. I have a container view inside this UIViewController which displays (say for the time being) index of the row on which didSelectRowAtIndexPath was called. I want to do this using a segue, but the problem is I don't know how to get a reference to the view controller which is formed by using the container view. I know you can get the destination View Controller using segue.destinationViewController in the prepareForSegue

How to check which segue was used

一曲冷凌霜 提交于 2019-11-30 03:42:12
问题 I got two segue's which lead to the same viewController . There are 2 buttons which are connected to the same viewController using 2 segues. In that viewController I need to check which button was clicked. So actually I need to check which segue was used/preformed. How can I check this in the viewControllers class? I know there is the prepareForSegue method, but I cannot use this for my purpose because I need to put the prepareForSegue in the class where the 2 buttons are, and I don't want it

XCode custom segue class stuck

南楼画角 提交于 2019-11-30 02:24:05
问题 this question might seem a little weird, but I can't wrap my head around why this is happening. What I did was I renamed a custom segue class, and reflected it in the storyboard under 'custom class', but it still tries to call the old one. I have cleaned the build folder and searched the project for the old custom class name and it does not find anything in xcode at least. I look inside the storyboard file, it's not there either. Even if I delete the custom segue all toghether I get: 'Could

How to use dismiss an iPhone popover in an Adaptive Storyboard

点点圈 提交于 2019-11-30 01:50:39
问题 I am new to iOS development, and am trying to learn storyboarding, Swift, and the new features of iOS 8 at the same time. I have created a very simple storyboard that uses a Popover presentation segue to display another view. On the simulator, if I run this for an iPad, it works as expected. However, if I run it for an iPhone, instead of a popover, it displays a full-screen view, on top of the original view. This is fine; however, there is no way to dismiss it and go back to the original