Drag and drop from popover iOS 13 - drag-and-drop

I cannot drag and drop from a TableView Controller to a textView in my main view while using a popover segue. However, it works fine using a show segue. I found that I could easily drag and drop (app to app) to and from a table view in another app. Any insights would be appreciated. I am a novice. Thanks. Xcode 11.4, swift 4.2, iOS 13.4, Mac OS 10.15.4

Related

How to open another view when button is clicked in iOS app development?

I am trying to build an app, and I want another view to open up once I click a button. I have searched for an answer, but nothing came up. I already have the button done, but I don't know how to get another view to show up. The view should be another view within the app. I am just a beginner in xCode. Thanks.
I am currently using xCode 9, and swift 4. Thanks.
You can approach this either using the storyboard or programmatically. Using the storyboard, you can ctrl-drag from the button to the other view controller and the segue will be wired up for you, like so:
If you aren't using storyboards at all, you can use the .show method of the ViewController in the button action. Apple has a good guide on segues.

Xcode Crash when trying to drag NSCollectionView to storyboard

I am trying to add a nscollectionview to my OSX project but this will causes Xcode to force-close:
Every time when I am dragging the collectionview into the storyboard Xcode will be force close.
I do not know either I am the only one having this problem or everyone else has work around solution.
This seems to happen when targeting operating system verisons that don't support macOS 10.11+ UIKit-style NSCollectionViews.
I was able to get an "old-style" collection view into a storyboard by dragging one into a xib file, then opening it as XML text and copy-pasting the <collectionView> into the <subviews> of a parent view in the storyboard file.

iPhone 4" view controller in Xcode 6

I've recently downloaded Xcode 6(official from apple) but when I create a new project, wether I select iPhone or iPad for the device, I get only iPad-sized view controller in my storyboard. How do I fix that? Thanks

Convert xcode 4.6 iPhone app in to Universal app

I am trying to upgrade my existing iPhone app project to an Universal app,
I have implemented following steps,
Step 1: Project Navigator - target - Summary - devices - Universal (From iPhone to Universal)
Step 2: Created TabBar with NavigationBar Flow in Storyboard,
When i run my project in iPhone it works properly but when i run in iPad it shows only TabBar with NavigationBar.
Now my problem is how to create new .xib files for iPad ? Xocde doesn't created automatically when i selected my device from iPhone to Universal.
or
How to map my iPhone .xib files with iPad.
Do i need to create new Outlet and action for all buttons which are there in my iPhone .xib?
Thanks in advance.
Create a new xib for all your view controllers ,name the view controllers with "~ipad " as a suffix(ex. FirstViewController~ipad.xib)
xcode will automatically use the xib when the application run in ipad. Link your newly created xib with appropriate classes through identity inspector in xib.
Note : After creating a new xib, add all the controls as added in existing view controller and link newly added controls with file owner.
add all the controls and link with file owner.

Prevent UISplitViewController Master View from hiding (iPad iOS 4.x)

All worked fine in iOS 3.x on the iPad to prevent the Master view of the UISplitViewController from hiding. I created a method SizeControls() that was called whenever the device rotated (WillAnimateRotation event).
Now with iOS 4 on the iPad this no longer works. While the SizeControls is called something is still causing the Master view to be hidden. What do I need to do so that on both iOS 3 and iOS 4 I can have both Master and Details views appear just like in the Settings UI?
Thank you.
Take a look here, apple recommends you show the master view in a popover when in portrait.
If thats not a goer take a look at MGSplitViewController. Its a very nice split view which gives you this functionality for free.