I've been following an excellent guide on how to create basic custom table cells and populate them via a plist. The problem i've run into is the guide is written for iPhone, and i'm developing an app on iPad, one of the key issues is when creating the project, the guide uses a Navigation based template for iPhone, where iPad isn't selectable. Later on the guide it says to add outputs to this controller.
I tried following the guide using a Window based template for iPad, but have run into some problems when connecting the output. In particular where I add my 'customTableViewCell' outlet to the 'RootViewController' (which is a UITableController) - in my iPad project, it's just a 'UIViewController'
Is there an easy was to solve this? or is developing it on iPad a totally different tutorial?
thanks.
On the iPad, the Split-View format is really for navigation. It has a root view controller that is a tableview. You might have good luck starting with that template.
In the Interface Builder, you can add UITableView by dragging it onto the view.
Related
As we can see in youtube and facebook app. there are splits when we select one cell . split is hidden then. i want to have this type of structure in my app. if it is posible that in ios7 they will add template for split view for iphone
. As that worked fine in iPad. Can you please help me, i need to develop an app with this type of structure
in iphone when we create project with master template
we have this type of split view...
can we have same thing in iPhone too.
if there is default control of it.
No there isn't any default controller for applying slide effect inside iPhone.
Yes, you can achieve this by adding custom classes. Checkout for MFSideMenuContainerViewController
Enjoy Programming!
I know Xamarin supports universal iPhone/iPad views; however, after building some iPhone specific screens, it was mentioned about iPad support. In Xamarin Studio, is it easy to add an iPad view attached to the same controller after the fact? I know it uses an idiom to do the switch, as shown below (taken from here):
public Hello_UniversalViewController ()
: base (UserInterfaceIdiomIsPhone ? "Hello_UniversalViewController_iPhone" : "Hello_UniversalViewController_iPad", null)
{
}
Within XCode, how can I then link all the same outlets and actions easily? It seems possible, but looking for any guidance. Or should I just delete them, then re-add them with the universal view?
Thanks for any help...
No you should not delete your iPhone storyboard file instead you make one from file->Storyboard file and select for iPad. You can copy paste controllers from iPhone storyboard but then you have to set the dimensions and other relevant info specific for iPad.
hope this helps :)
I want to create a new navigation based application that needs to be work with only i pad?How can i do that.when i start the navigation based iphone application and then try to upgrade the target to ipad.then there is two target files,and two main window xibs ,it is confusing me ,i need this application to be work only in ipad.i changed the device family to ipad?thsese are the steps done by me
1)created a new navigation based application in 3.2 with core data enabled.
2)upgraded the target to ipad(not universal only ipad)
3) changed the device family to ipad.
But this will give me two targets and two set of zib files,what to do?
is it enough? can anybody give the exact steps in achieving this?
As you've said, change the Targeted Device Family to iPad is enough.
If you still not feeling comfortable with the iPhone's files (main window xib for example), you can just delete them.
Start with a single view template, then embed the initial view controller in a navigation controller. But you don't see many iPad native full screen navigation based apps. A split view is more usual.
Just a silly question that just cant figure out. Ive been working on iPad apps for a while but now Im back on an iphone project.
I created an iphone 4.0 sdk based project but when i double tap on a xib file, IB comes with iPad layout and i cant figure out how to switch it back to iphone layout.
Anyone?
When you create the project, be sure to select Product = iPhone in the "New Project" window.
Also, if you already have the iPad views, you can transform them to iPod/iPhone views through File->Create iPod/iPhone Version using autosizing masks
Partially solved,solution sucks. i created a view based project and there IB shows xib with iphone layout. Couldnt find a solution yet when creating a window based project.
I have another issue related to Views, and i've ended up here dealing with Views and Windows in general. My understanding of all the fundamentals of iPhone development has been turned upside down.
Can somebody explain, or point to a reference, the difference between these 2 templates?
Ex: My app doesnt show a Window in the Interface Builder. Should I have one? When should i have one and when should I not?
The Window-based Application template provides just an application delegate and a window.
A View-based application will start you off with an application delegate and a window, as well as a view.
Your application doesn't show a Window because the view that you are (most likely) viewing and editing now is loaded by the Window, which is in a separate XIB.