Cocoa Touch: iPad table grid layout - objective-c

I'm trying to build a iPad version of a iPhone application. The application has a section with photos all organized in a album/event. On the iPhone version the albums are listed in a standard UITableView, but for the iPad version I think it should be done differently.
Here is a sample from Apple's Photos App where the albums/events are shown in a grid:
How can I create a similar view in my storyboard? Is it done using a custom TableView?

There is a very good open-source project named "AQGridView" to do custom grids. It can help you. The project is here on github.
I hope it's what you are looking for.

Related

Upgrade project for iPhone X and iOS 11

I'm working on very old project which is written in objective-C and it's all views and controllers are written programatically. (There are not even XIBs, except some cells)
I've already open project in latest Xcode 9.3 and resolve all error and dependencies and compiled it successfully.
But now I want to upgrade the whole project to give support for iOS 11 and iPhone X layout, and I also want to add storyboards and remove all programatically controllers. It's also compatible for iPad and iPhone both.
Can anyone suggest me how to start it and what to keep in mind?
It's huge project so I'm bit confuse either would I make it or not. (I don't wanna introduce swift at the moment, first I'll update it for iPhone X layout and storyboards, then I'll think about swift too)
First of all start with creating UI on storyboard with autolayout.
Remove the resizing views conditions from the code.
Use size class to support both iPhone and iPad.
so basically first 3 steps will solve 70% of your issues.
My suggestion is don't move to the swift before doing all this.

Storyboard for iPhone-only application displaying iPad sizes?

I am following along with a tutorial on Lynda.com and I am using XCode 6, while the tutorial uses XCode 5, so perhaps this is the problem. I have created a tabbed application and set devices to iPhone but my storyboard file looks like it's displaying iPad sizes. Why is this? My storyboards for other projects are not displayed like that.
In Xcode 6 Main.storyboard is the single storyboard for all devices, no matter their screen size. Open the storyboard and you’ll see that it contains a single view controller, but of an unfamiliar size. Storyboards in previous versions of Xcode had to match the screen size of the target device. This clearly isn’t possible with the “one storyboard to rule them all” approach, so the storyboard is given an abstract size instead.
Please check this tutorial :
http://www.raywenderlich.com/83276/beginning-adaptive-layout-tutorial

Converting iPhone app to Universal, XCode 5.1 using Xib files

Our application(only for iPhone) is already in iTunes. Which was developed using xib files. Now client wants same app should support both iPhone & iPad.
1. If I change "Development Info -> Devices -> Universal", will this work properly in both kind of devices?
A. If Yes for above : If I change version of an app on iTunes with the same project name. How this can be achieved?
B. What Settings should I do in plist file and with xib files?
Plz suggest.
Thanks in Advance
You can change to Universal, so the application will RUN in both iPhone and iPad. Nonetheless, you will have to make changes to xib depending on the behavior of your app. Usually, iPads use list and detail views if it's in landscape, for example:
or in portrait view:
both look something like:
I want to point out again, on how your app behaves. Is not mandatory to use master-detail style, only if it fits your app.
And you can upload your binary to iTunes without problems. You could have problems if your app is using Universal and changing to iPhone or iPad only. And don't touch your plist.

How can I achieve this style in iOS?

In my app, I'd like to show a popup screen within my UITableViewController screen listing a few options for the user to select from.
Similar to how the Facebook app works (unfortunately I have no requests) :(
So I have two questions:
1) The black, shaded frame we see here seems to be a common style that I see a lot, especially in iPad apps. Is this just coincidence that apps use the same style? Is it a 3rd party plugin that others are using? Or is it a new, native part of the iOS SDK?
2) If I am to build this subview myself, what kind of structure would be best? I'd thought of:
UIImageView (for the background) >
UILabel (containing the header)
UITableView (containing my sub-table)
Thanks in advance
It's UIPopoverController, native component for iPad, but not for iPhone.
For iPhone use 3rd party frameworks, like this one:
http://www.50pixels.com/blog/labs/open-library-fppopover-ipad-like-popovers-for-iphone/

How do I programatically get a large iPad window on startup with MonoTouch?

I have the latest Ipad compatible Monotouch library. I have upgraded my projects to use 3.2 SDK and MonoTouch 1.9 Alpha.
The docs say you need to change the Window in your XIB for the large iPad Window. I don't use XIB. I build my interface from code by constructing the object programatically. What should I be doing to get the large iPad style Window?
Nothing (I assume).
[UIScreen mainScreen].bounds (and its equivalent on MonoTouch) will be 768x1024 in iPad mode and 320x480 in iPhone mode. If your windows and views do not have any hard-coded values they should adopt to the new size naturally.
After further investigation, I found that I needed to add an entry into the info.plist file like so:
Information Property List
UIDeviceFamily
item 0 2
Once this is present the dynamic Window class that I create is the full iPad screen size.
I think it is basically telling the system that my app supports that device. Will have to find our more in the docs.