uistoryboardsegue

Drag Segue To Self in Storyboard

我只是一个虾纸丫 提交于 2020-01-03 10:56:13
问题 I want to drag a segue from my viewcontroller, to itself. So I can push "infinite" instances of that particular view controller. I know how to do this in code (I.e instansiate the view controller programmatically). However, I want to use segues as far as possible. I've found a few "hacks" for making segue to self in storyboard, but I don't like hacks, so my question is; Is there a clean way to make a segue back to self in the Storyboard? I dont want to drag it from a button or such, I just

UICollection View - Segue - did select specific cell , LOG

流过昼夜 提交于 2020-01-01 05:44:23
问题 I am starting to use a UICOllectionview to load a custom made photo album, the album loads just fine, and the data is coming from my server (SQL-JSON-NSARRAY-NSDictionary) and been populated in the cell's just fine, However now I would like it when the user selects that cell to load a new UIVIewController with that image in full size (so they can view/print/share etc) However I am getting stuck in the 'prepare for segue' method, as I cannot pull any information from that specific cell as a

Disabling segue animation

余生颓废 提交于 2020-01-01 04:17:16
问题 I want to Show (e.g. push) segues in my storyboard, to connect my viewcontrollers and my navigation controller. Then the navigation bars on the viewcontrollers will show correctly. For example: With show detail or present modaly, the navigation bar will disappear But I don't want segue animation. Xcode is giving the warning like : "Disabling segue animation is not available prior to iOS 9.0" And I wants deployment target of iOS 7.0 or 8.0 How can I solve this? Thanks in advance. 回答1: You can

Swift: Force show Navigation Bar in Modal

一曲冷凌霜 提交于 2020-01-01 02:01:50
问题 I have the following Storyboard Segue in my Swift project: The animation is correct, but there is no navigation bar in the destination view controller. I want to force the destination view controller to have a navigation bar. I tried in the destination view controller: override func viewWillAppear(animated: Bool) { super.viewWillAppear(true) navigationController?.navigationBar.hidden = false } Or: override func viewWillAppear(animated: Bool) { self.navigationController?.setNavigationBarHidden

Is there a way to select a segue anchor programmatically?

北城以北 提交于 2020-01-01 01:53:12
问题 Suppose I have a Storyboard containing a view that contains a button. When the user presses this button, a popover comes up. Thus, I need to set an anchor by dragging the segue to the button using Xcode (and then do performSegueWithIdentifier: ). So, my question is: is there a way to set this "anchor" programmatically? Thank you. 回答1: In my case I've added programmatically several UIBarButtonItem. The problem of only using an invisible view as an archor is that, if like in my case, the size

Unwind Segue with UITableViewCell in Xamarin.iOS

﹥>﹥吖頭↗ 提交于 2019-12-25 16:49:24
问题 Can someone tell me definitively if there is a limitation with using Unwind Segues with UITableViewCell or if not how to achieve this? I can successfully implement an unwind segue from my second view controller to my first - triggered using a simple UIButton . However, when I try to use a UITableViewCell to create the unwind segue (drag from the TableViewCell to the green Exit icon then I do not get an option for Action Segue . Instead I get options for "Selection Segue" and "Accessory Action

How to pass two textfield entries to another ViewController with using segue

痞子三分冷 提交于 2019-12-25 14:45:46
问题 I want my user to go to the TableViewController once they enter their "id" and "password" but when we use prepare and performsegue methods we just send one variable. @IBAction func logIn(_ sender: Any) { performSegue(withIdentifier: "emailSegue", sender: emailTextField.text) performSegue(withIdentifier: "passwordSegue", sender: passwordTextField.text) } override func prepare(for segue: UIStoryboardSegue, sender: Any?) { let guest = segue.destination as! ExpenseTableViewController guest

My Navigation Controller Count Keeps Growing

做~自己de王妃 提交于 2019-12-25 05:09:42
问题 I'm new to iOS dev and am not entirely sure on Storyboards/Segues/Pushing and Popping. So in my app I have a navigation controller with 5 view controllers leading from one to another. When it reaches the last view controller i have a segue to the first and I have a few tasks listed in the prepareForSegue method. Out of curiosity I decided to check what happens to the [self.navigationController.viewControllers count] . I found that it keeps growing and growing which doesn't 'feel' correct. Am

iPhone [self performseguewithidentifier… ] is not showing the new view controller

邮差的信 提交于 2019-12-25 05:09:14
问题 I have been all over stackoverflow and all over Google and I cannot seem to figure this one out. Here's my scenario: I have my app's "main screen" where the user first makes decisions about what they're going to do. The app works off of a CoreData database which is created by "importing" XML files. The user can choose to open an XML file attached to an email in my application, which automatically triggers my main screen to show up and run the import of the file. I can get this far without any

Segue back from Modal to First Tab Bar

断了今生、忘了曾经 提交于 2019-12-25 03:07:19
问题 I have two TabBarController views embedded in a NavigationController and one View presented modally with its own NavigationController: FeedView (1) (TableViewController -> Contained within TabBarController) VenueView (2) (CollectionViewController -> Contained within TabBarController) SelectView (3) (ViewController -> Modally presented from VenueView) In VenueView (2), I have the following code to bring up SelectView (3): override func collectionView(collectionView: UICollectionView,