universal

Combining iPhone/iPad apps into one universal app

假装没事ソ 提交于 2019-12-06 11:29:36
I have two apps (one for the iPhone, the other for the iPad) that I'd like to combine into one universal app. For my first attempt, I tried creating a new universal app project and added the libraries for the iPhone and iPad versions. The iPad version compiled and ran fine (as expected), but the iPhone version didn't. My hope was that I could create a universal app that would execute only the project in the iPhone library when running on the iPhone and vice versa for the iPad. It seems like this should still work. Is there a way to tell the universal app project to ignore one of the external

Universal Analytics升级完全指引

为君一笑 提交于 2019-12-06 10:06:40
Universal Analytics在2014年4月初完成了公测,抛掉了beta版的帽子,官方也提供了从Google Analytics升级为Universal Analytics的通道。在UA Bata公测一年多的时间中,我设置了传统GA与UA两套跟踪方式并用,在正式版发布以后也把原来的传统GA的网络媒体资源也升级为了UA。目前传统的Google Analytics仍然是可以使用,Google官方说原来的GA在未来非常长的时间内还是可用的,但停用GA全面转向UA是必然的,在停用GA之前也会在后台界面上显示停用和升级的提醒。如果你还没准备好升级你的GA,那目前继续用着也没有任何问题。但如果你要使用UA新增的一些高大上的功能比如自定义维度和自定论指标、跨平台跟踪、在线/在线数据同步、简化的配置控制功能等等,这时你需要把你的GA升级为UA。 为了减小升级的风险和简化升级的步骤,这里有几点建议: 1. 如果担心升级为UA后数据丢失,可以新建一个UA媒体资源与原来的媒体资源并行运作,检查两个媒体资源的数据是否一致。新建的媒体资源的跟踪代码配置也应和原来的媒体资源的跟踪代码配置一致。 2. 建议使用Google Tag Manager进行新建UA媒体资源的配置。这样可在大大简化代码配置的工作。并在GTM中设置一个媒体资源ID的宏

Universal Master-Detail Application with Core Data and tab controller for iphone storyboard gets unrecognized selector sent to instance error

痞子三分冷 提交于 2019-12-05 20:28:13
I started a Master-Detail Application in X-Code. I chose the options to be universal, core data, and git repo. When the application comes up, I went into the iphone story board, added a tab view controller, moved the nav/table/detail views it starts with to be in the tab controller as the third tab (in reality I want it to be the fourth). I then chose the tab controller to be the initial view the program should start with when in iphone mode. It builds successfully but does not allow the program to finish loading. The error that comes out is recorded below: 2013-05-11 21:35:00.302

Is there a global way to merge an iPhone and an iPad app into a universal app?

血红的双手。 提交于 2019-12-05 12:17:58
I wrote an iPhone app. Then, I changed the interface a fair bit, added higher res images, and made an iPad version of it. In a perfect world, I would like for anyone who buys the iPad version to get the iPhone version for free (though not conversely). Since Apple doesn't seem to have a way to do that (right??), my next favorite solution is to make the iPad version include the iPhone version somehow. I know that I could just convert the iPad version to "universal", but since the face of the app is so different, that seems like a real pain. I have many view controllers and they are almost

cannot upgrade current target for ipad

放肆的年华 提交于 2019-12-04 19:53:39
i try to upgrade my old existing app to make it a universal application for iphone and ipad. i clicked on my target and tryed to select "upgrade current target for ipad", but i cannot click it, because its not clickable. alt text http://dl.dropbox.com/u/80699/Bildschirmfoto%202010-05-05%20um%2018.21.30.png my project settings are: The Base SDK is set to iPhone Device 3.2 The iPhone OS Deployment Target is set to iPhone OS 3.1 The Targeted Device Family is set to iPhone/iPad are there any other things i have to pay attention? please help, to get my application upgraded. Targeted Device Family

EventKit in Universal app (OS3.2)

柔情痞子 提交于 2019-12-04 16:10:39
I made iPhone app with eventkit framework. However, i upgrade to universal app, app can't run in ipad. I got error message dyld: Library not loaded: /System/Library/Frameworks/EventKit.framework/EventKit Yes, event kit only work for iOS 4.0 or later. So, how to make it for universal. I want to make , if iPad app, don't use event kit framework. However, I can't add #import <EventKit/EventKit.h> #import <EventKitUI/EventKitUI.h> in run time You need to do two things: First, weak link against the EventKit framework. You do this in Target->Get Info->General. Secondly, you need to decide at run

Making universal apps without Interface Builder

旧城冷巷雨未停 提交于 2019-12-04 08:45:11
问题 I'm using XCode 4.2, with iOS 5, and would like to make a universal app, not using Interface Builder, as outlined in this post, not using a MainWindow.xib. I would also like to separate my iPhone and iPad code, using the technique outlined in Kotan Code's post. So I have the main appdelegate , and appdelegate_iPhone and an appdelegate_iPad that inherit from it. Back in XCode 4.0 (and in Kotan's post), the appropriate appdelegate was used because there was a MainWindow_iPhone.xib (or

Create single .xib for Universal app in Interface Builder? (iOS)

匆匆过客 提交于 2019-12-04 05:26:36
Apologies if this is a silly question, but I've done some googling and searched SO and haven't found anyone asking this exact question. I have been doing iOS development for some time now, but I am completely new to the Interface Builder. What I want to know is this: is there any way to just create ONE .xib file and then use it for both iPhone and iPad in a Universal application? It seems silly to me to have to create them separately; why do twice the work laying something out more than once in Interface Builder when I could do it once (with minor adjustments for screen size) in code? Please

Is there a problem in perl 5.12.2 using splice on @ISA?

故事扮演 提交于 2019-12-04 02:33:57
The following is a debug session on Perl 5.12. Does this make any sense? Does UNIVERSAL cache a version of the @ISA variable, which if forever uses thereafer. Back before Class::ISA was deprecated, I used to call Class::ISA::self_and_super_path to get the internals to relook at the @ISA array. Since it is now considered unnecessary, how do you get perl to audit its internal records? DB<34> p $papa Papushka=HASH(0x16bc0300) DB<35> p $papa->isa('Nanushka') DB<36> p $papa->isa('Babushka') 1 DB<37> x @Papushka::ISA 0 'Nanushka' 1 'Babushka' This is test code (obviously). It's getting the same

Making universal apps without Interface Builder

爷,独闯天下 提交于 2019-12-03 00:45:32
I'm using XCode 4.2, with iOS 5, and would like to make a universal app, not using Interface Builder, as outlined in this post, not using a MainWindow.xib . I would also like to separate my iPhone and iPad code, using the technique outlined in Kotan Code's post . So I have the main appdelegate , and appdelegate_iPhone and an appdelegate_iPad that inherit from it. Back in XCode 4.0 (and in Kotan's post), the appropriate appdelegate was used because there was a MainWindow_iPhone.xib (or MainWindow_iPad.xib ) associated with it. If I'm not using .xibs, how do I programatically go to the correct