Can't link / connect UIScrollView? - ios5

I have created a UIScrollView in the Interface Builder.
But i can't link / connect it in my header!
I'm using:
Xcode 4.2.1
iOS 5 SDK

Solved, i added my custom class to my UIScrollView and ViewController and it worked!

Related

Drag and drop from popover iOS 13

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

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.

create UITabbarController with UITableViewController xib in xcode 4.3

I'm new in iPhone, I want to create UItabbarController with 4 tabs, each tab contains UItableViewControllers in xib for both iPhone and iPad and want (h & m) files for each table.
Consider that I'm using Xcode 4.3 with iPhone 5.1 and I'm not want to use storyboard.
is there are any good tutorial to do this?
Thanks in advance.
First of all you do not need to create a new UItabbarController.You can use default tabbar controller and what you need is adding 4 tab bar items as UItableViewControllers to uitabbar controller.
You can refer to this tutorial about tabbabcontrollers
http://www.edumobile.org/iphone/iphone-programming-tutorials/tabbarcontroller-with-navigationcontroller-and-tableview-in-iphone/

Link IBOutlet to both iPhone and iPad Storyboards

I am writing a universal application. As far as I can tell, it's not possible to use Interface Builder to link an IBOutlet, which is already linked to the iPhone storyboard, to the iPad storyboard?
What are possible workarounds for this? Should I just edit the storyboard via text editor?
It doesn't really seem sensible to have an IBOutlet for each device if it's the exact same element behaving in the exact same fashion.
Cheers-
You should be perfectly capable and able to add IBOutlet's to both an iPhone_Storyboard file and likewise the same IBOutlet's on an iPad_Storyboard file. What does it appear to be doing, simply detaching your previous connection in the other Storyboard file?
I've done this on multiple universal applications without an issue.
I ran into this issue as well. My problem was that I forgot to make sure that the Custom Class of the UIView were the same in both the iPhone and iPad versions of the storyboard. After fixing that, Xcode instantly let me connect the outlets.

iPhone simulator shows black screen when setting a custom UIViewController class

When creating a single view application in Xcode and dragging a UIButton in, for example, the button shows up when running the application in the iPhone simulator. However, when creating a new UIViewController class and setting that as the custom class of the view controller in the storyboard file, just a black screen is shown in the iPhone Simulator.
What did I do wrong?
I bet the Xcode template included the loadView method in your controller class. You need to delete that as you only override that method when you are creating your interface via code.