• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode 4.3.1 Universal Apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 4.3.1 Universal Apps


  • Subject: Re: Xcode 4.3.1 Universal Apps
  • From: Roland King <email@hidden>
  • Date: Sat, 17 Mar 2012 12:33:10 +0800

I think this may all have changed a bit around iOS 5 when storyboards were introduced. IIRC before that your main NIB file had the delegate in it (which you hooked up to the delegate of the UIApplication). As you had different NIBs for iPhone and iPad, you could have two delegates, so they did.

Now with storyboards there's no files owner for the individual pieces of the storyboard and nowhere to hook up the delegate like that and instead the class is specified in the UIApplicationMain() call, so it's the same for the whole project (note in my original answer i pointed out that you can change main.m to load different versions on different platforms if you wanted to keep the old behaviour. Most likely one delegate is just fine for iPhone and iPad and any customization can be done in the viewcontrollers).

On Mar 17, 2012, at 12:18 PM, Donald Largen wrote:

> I see that I can select Universal for all project types.  I guess what I expected was two app delegates and a folder structure for iPad and iPhone.  Again I am just going off of tutorials etc that I found online.
>
> I do recall reading that you needed to choose a windows based app because that was the only template that allowed you to select a Universal app.  That obviously has changed so I guess they done away with the two app delegates as well.
>
>
> On Mar 16, 2012, at 5:49 AM, Roland King wrote:
>
>> I checked all 7 iOS project types when I wrote the reply and they all support iPhone, iPad and Universal in 4.3.1.
>>
>> On Mar 16, 2012, at 6:22 PM, Eric Dolecki wrote:
>>
>>> There is only one project type now that supports universal if I remember correctly. Just make sure to pick the correct one.
>>>
>>> Sent by Eric's faithful iPad.
>>>
>>> On Mar 16, 2012, at 1:39 AM, Roland King <email@hidden> wrote:
>>>
>>>> Works fine for me. Are you sure, on the first screen after you picked application type, you had 'universal' in the dropdown, I know that's a stupid question but it's all I can think of. You should have two storyboards, one for phone, one for iPad, and the target settings should reflect those as the entry points. All the rest of the code is the same and should be, only the nibs differ.
>>>>
>>>> Of course, as the nibs differ, nothing stops you (and this is quite common) writing ipad and iphone versions of your view controllers and even the app delegate (as long as you change the code in main.m appropriately) to load slightly different versions on different platforms, but up-front, the only difference should be the storyboards.
>>>>
>>>>
>>>> On Mar 16, 2012, at 12:54 PM, Donald Largen wrote:
>>>>
>>>>> I have been reading up on universal apps and what Xcode does for you, creating the two entry points, iPad Folder etc.  I am running Xcode 4.3.1 and  created a sample project and I noticed all the things I just mentioned are now gone, or I believe to be gone.
>>>>>
>>>>> Can some one explain?
>>>>>
>>>>> Thanks
>>>>> Donald
>>>>>
>>>>> _______________________________________________
>>>>>
>>>>> Cocoa-dev mailing list (email@hidden)
>>>>>
>>>>> Please do not post admin requests or moderator comments to the list.
>>>>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>>>>
>>>>> Help/Unsubscribe/Update your Subscription:
>>>>>
>>>>> This email sent to email@hidden
>>>>
>>>>
>>>> _______________________________________________
>>>>
>>>> Cocoa-dev mailing list (email@hidden)
>>>>
>>>> Please do not post admin requests or moderator comments to the list.
>>>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>>>
>>>> Help/Unsubscribe/Update your Subscription:
>>>>
>>>> This email sent to email@hidden
>>
>


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Xcode 4.3.1 Universal Apps (From: Donald Largen <email@hidden>)
 >Re: Xcode 4.3.1 Universal Apps (From: Roland King <email@hidden>)
 >Re: Xcode 4.3.1 Universal Apps (From: Eric Dolecki <email@hidden>)
 >Re: Xcode 4.3.1 Universal Apps (From: Roland King <email@hidden>)
 >Re: Xcode 4.3.1 Universal Apps (From: Donald Largen <email@hidden>)

  • Prev by Date: Re: The use of UIActionSheet mysteriously disables our app with a white screen after memory warning.
  • Next by Date: Re: The use of UIActionSheet mysteriously disables our app with a white screen after memory warning.
  • Previous by thread: Re: Xcode 4.3.1 Universal Apps
  • Next by thread: iTunes like Fast Forward and Rewind Buttons
  • Index(es):
    • Date
    • Thread