universal

Angular 4 Universal “window is not defined”

陌路散爱 提交于 2019-12-10 20:40:45
问题 My project was running perfectly but when i implement universal then i am getting "window is not defined". My error is as below. node_modules/hammerjs/hammer.js:2643 })(window, document, 'Hammer'); ^ ReferenceError: window is not defined at Object.<anonymous> (/var/www/html/resumeble_unv/node_modules/hammerjs /hammer.js:2643:4) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at

Make Eclipse RCP Intro part of a perspective

大城市里の小女人 提交于 2019-12-10 19:46:33
问题 For a product we are creating, we want to be able to have the welcome screen display in a perspective (which we are calling "Start Here"). The intro is the only thing that needs to be in that perspective, however, when I try to add our intro view to the perspective, it says that the view already exists in the layout. I have tried programmatically closing the intro, messing around with standby mode etc but I cant get it working. The intro is an XHTML one and we use internal Eclipse "action

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

笑着哭i 提交于 2019-12-10 10:16:53
问题 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

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

本秂侑毒 提交于 2019-12-09 17:28:00
问题 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

UWP How to get ListviewItem Currently clicked and Previously clicked

本小妞迷上赌 提交于 2019-12-08 14:31:28
I am developing UWP App, I have a Listview bind with a class, wherein upto 10 items. Listview have a DataTemplate and a Usercontrol is inside this DataTemplate. I want to click on any item so the animation (storyboard) should start and the ColorBand should expand toward right and when I click on another item now the expanded (previously clicked) ColorBand should collapse and the current clicked item's ColorBand should expand. This approach can be possible if I put this ColorBand inside the Listviewitem Style and use the Visual State Manager, but actually I need to put the border color and

Is this a correct way of creating a universal iOS app? Xcode 4 - Seems to work?

冷暖自知 提交于 2019-12-08 05:18:45
问题 Here is how I made a universal app from an existing iPhone project by creating ~ipad.xib(s) using duplicate and then adding them back to a backup of the project, and checking universal. I used xcode 4.02 with a base sdk of 4.3.3 with a deployment target of 3.1.2. Back up your whole project somewhere. Right click on iPhone target and choose duplicate. Choose duplicate for iPad rather than just duplicate. This makes a new folder called Resources-iPad with a subfolder called classes under that,

Converting an iPhone app to Universal in Xcode 4

北城余情 提交于 2019-12-08 05:13:17
问题 I could use a little clarity here. I've opened a project that is a completed iPhone app. Then selected the target, selected "Universal" from the Summary/Devices dropdown, and followed the prompt to "Make a Universal App." Xcode created a folder "iPad" with the file "MainWindow-iPad.xib" within. Fine. Now I duplicated all of my other nib files, and added "-iPad" after their name. I.e. "MySpecialVC.xib" was duped and renamed "MySpecialVC-iPad.xib." The thought was that Xcode knows some zoodoo

UWP How to get ListviewItem Currently clicked and Previously clicked

喜你入骨 提交于 2019-12-08 04:37:32
问题 I am developing UWP App, I have a Listview bind with a class, wherein upto 10 items. Listview have a DataTemplate and a Usercontrol is inside this DataTemplate. I want to click on any item so the animation (storyboard) should start and the ColorBand should expand toward right and when I click on another item now the expanded (previously clicked) ColorBand should collapse and the current clicked item's ColorBand should expand. This approach can be possible if I put this ColorBand inside the

Combining iPhone/iPad apps into one universal app

核能气质少年 提交于 2019-12-08 03:05:40
问题 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

cannot upgrade current target for ipad

巧了我就是萌 提交于 2019-12-06 14:04:57
问题 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