离子ios应用程序卡在启动画面 - 在模拟器不工作在iphone 5s设备(ionic ios app stuck on splash screen - works in emulator not on iphone 5s device)
推送到我的iOS设备时,我目前在启动画面上卡住了。 我已经确定通过bower安装安装ngCordova,并且所有离子仿真都按预期工作。 只有当我部署到iOS设备时,它才会卡在启动画面上。 我已经在config.xml文件中包含了启动画面的正确语法
<preference name="AutoHideSplashScreen" value="false" /> <feature name="SplashScreen"> <param name="ios-package" value="CDVSplashScreen" onload="true"/> </feature>
我在我的主app.js文件中有以下内容
.run(function($ionicPlatform, $cordovaSplashscreen, $timeout) { $ionicPlatform.ready(function() { $cordovaSplashscreen.hide();
(不包括.run中的其他内容)
离子版 - 1.2.8
科尔多瓦版本 - 4.0.0以下是用于工作iOS仿真的xcode中的输出:
2014-11-10 17:09:15.150 endevr[94986:627339] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/drlightx3/Library/Developer/CoreSimulator/Devices/7D2185B9-9897-41E8-B005-B0D35284F661/data/Containers/Data/Application/027864C5-CC64-4859-BCEA-48D8DD4B90A2/Library/Cookies/Cookies.binarycookies 2014-11-10 17:09:15.291 endevr[94986:627339] Apache Cordova native platform version 3.6.3 is starting. 2014-11-10 17:09:15.292 endevr[94986:627339] Multi-tasking -> Device: YES, App: YES 2014-11-10 17:09:15.304 endevr[94986:627339] Unlimited access to network resources 2014-11-10 17:09:15.631 endevr[94986:627339] [CDVTimer][splashscreen] 48.977017ms 2014-11-10 17:09:15.631 endevr[94986:627339] [CDVTimer][TotalPluginStartup] 49.114048ms 2014-11-10 17:09:15.691 endevr[94986:627339] Resetting plugins due to page load. 2014-11-10 17:09:15.886 endevr[94986:627339] Finished load of: file:///Users/drlightx3/Library/Developer/CoreSimulator/Devices/7D2185B9-9897-41E8-B005-B0D35284F661/data/Containers/Bundle/Application/6EE8A114-222C-4903-88EC-9EEF8853B76C/endevr.app/www/index.html#/app/browse
然后,当我建立一个真正的iPhone 5S时,我得到以下内容:
2014-11-10 17:09:43.691 endevr[973:264078] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/8512E3E3-FF06-4BDF-94DD-B999AD55ADCC/Library/Cookies/Cookies.binarycookies 2014-11-10 17:09:43.857 endevr[973:264078] Apache Cordova native platform version 3.6.3 is starting. 2014-11-10 17:09:43.859 endevr[973:264078] Multi-tasking -> Device: YES, App: YES 2014-11-10 17:09:43.868 endevr[973:264078] Unlimited access to network resources 2014-11-10 17:09:44.067 endevr[973:264078] [CDVTimer][splashscreen] 92.771947ms 2014-11-10 17:09:44.067 endevr[973:264078] [CDVTimer][TotalPluginStartup] 93.294024ms 2014-11-10 17:09:44.342 endevr[973:264078] Resetting plugins due to page load. 2014-11-10 17:09:44.696 endevr[973:264078] Finished load of: file:///private/var/mobile/Containers/Bundle/Application/2BD18E5C-94C7-467D-83D5-617E3BD15434/endevr.app/www/index.html
看着每个输出的最后一行,似乎ui-router的#/ app / browse在iPhone 5S上遇到了问题,我无法弄清楚为什么。 当我运行
ionic serve
和ionic emulate ios
一切都呈现良好,但是一旦我将它推到我的实际手机上,它就会挂在闪屏上。I'm currently getting stuck on the splash screen when pushing to my iOS device. I've made sure to install ngCordova via bower install and all my ionic emulations are working as expected. Only when I deploy to an iOS device, does it get stuck on the splash screen. I've included the proper syntax for the splash screen in the config.xml file
<preference name="AutoHideSplashScreen" value="false" /> <feature name="SplashScreen"> <param name="ios-package" value="CDVSplashScreen" onload="true"/> </feature>
and I have the following in my main app.js file
.run(function($ionicPlatform, $cordovaSplashscreen, $timeout) { $ionicPlatform.ready(function() { $cordovaSplashscreen.hide();
(not including the rest of the content in the .run)
ionic version - 1.2.8
cordova version - 4.0.0Here is the output in xcode for the working iOS emulation:
2014-11-10 17:09:15.150 endevr[94986:627339] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/drlightx3/Library/Developer/CoreSimulator/Devices/7D2185B9-9897-41E8-B005-B0D35284F661/data/Containers/Data/Application/027864C5-CC64-4859-BCEA-48D8DD4B90A2/Library/Cookies/Cookies.binarycookies 2014-11-10 17:09:15.291 endevr[94986:627339] Apache Cordova native platform version 3.6.3 is starting. 2014-11-10 17:09:15.292 endevr[94986:627339] Multi-tasking -> Device: YES, App: YES 2014-11-10 17:09:15.304 endevr[94986:627339] Unlimited access to network resources 2014-11-10 17:09:15.631 endevr[94986:627339] [CDVTimer][splashscreen] 48.977017ms 2014-11-10 17:09:15.631 endevr[94986:627339] [CDVTimer][TotalPluginStartup] 49.114048ms 2014-11-10 17:09:15.691 endevr[94986:627339] Resetting plugins due to page load. 2014-11-10 17:09:15.886 endevr[94986:627339] Finished load of: file:///Users/drlightx3/Library/Developer/CoreSimulator/Devices/7D2185B9-9897-41E8-B005-B0D35284F661/data/Containers/Bundle/Application/6EE8A114-222C-4903-88EC-9EEF8853B76C/endevr.app/www/index.html#/app/browse
Then, when I build to a an actual iPhone 5S I get the following:
2014-11-10 17:09:43.691 endevr[973:264078] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/8512E3E3-FF06-4BDF-94DD-B999AD55ADCC/Library/Cookies/Cookies.binarycookies 2014-11-10 17:09:43.857 endevr[973:264078] Apache Cordova native platform version 3.6.3 is starting. 2014-11-10 17:09:43.859 endevr[973:264078] Multi-tasking -> Device: YES, App: YES 2014-11-10 17:09:43.868 endevr[973:264078] Unlimited access to network resources 2014-11-10 17:09:44.067 endevr[973:264078] [CDVTimer][splashscreen] 92.771947ms 2014-11-10 17:09:44.067 endevr[973:264078] [CDVTimer][TotalPluginStartup] 93.294024ms 2014-11-10 17:09:44.342 endevr[973:264078] Resetting plugins due to page load. 2014-11-10 17:09:44.696 endevr[973:264078] Finished load of: file:///private/var/mobile/Containers/Bundle/Application/2BD18E5C-94C7-467D-83D5-617E3BD15434/endevr.app/www/index.html
looking at the last line of each output, it doesn't seem like ui-router's #/app/browse is getting hit on the iPhone 5S and I can't figure out why. When I run
ionic serve
andionic emulate ios
everything renders fine, but once I push it to my actual phone, it hangs on the splash screen.
原文:https://stackoverflow.com/questions/26856497
最满意答案
当你
select * from some_table;
写select * from some_table;
在SQL * Plus中,SQL*Plus
充当客户端程序,并根据从数据库返回的数据,格式化和显示数据等方面为您做了大量工作。只要你输入
DECLARE
,你就开始一个PL / SQL块。 现在,您正在调用PL / SQL,而PL / SQL正在调用SQL。 因此,您需要决定如何在PL / SQL中处理从SQL返回的数据。 做这件事的方法是通过一个INTO
子句和一个变量来接收输出。 考虑到,如果你不提供INTO
子句,那么SELECT
的输出数据在哪里去呢? 它必须去某个地方,对吧?希望这是明确的。
When you write
select * from some_table;
in SQL*Plus,SQL*Plus
is acting as the client program, and does a lot of work for you, under the covers, in terms of the data being returned from the database, formatting it and displaying it.As soon as you type
DECLARE
, you begin a PL/SQL block. Now, You're calling PL/SQL, and PL/SQL is calling SQL. As a result, you need to decide how to handle the data being returned from the SQL, in PL/SQL. The way to do that, is via anINTO
clause and a variable to receive the output. Considering that, where would the output data from theSELECT
go, if you don't provide anINTO
clause? It has to go somewhere, right?Hope that's clear.
相关问答
更多-
当你select * from some_table;写select * from some_table; 在SQL * Plus中, SQL*Plus充当客户端程序,并根据从数据库返回的数据,格式化和显示数据等方面为您做了大量工作。 只要你输入DECLARE ,你就开始一个PL / SQL块。 现在,您正在调用PL / SQL,而PL / SQL正在调用SQL。 因此,您需要决定如何在PL / SQL中处理从SQL返回的数据。 做这件事的方法是通过一个INTO子句和一个变量来接收输出。 考虑到,如果你不提 ...
-
在select查询中使用变量(Using variable in select query)[2022-12-16]
幸运的是我通过使用命中和试用获得了解决方案。 而不是在CONCAT函数中使用totalRegister作为变量,而是将其替换为@totalRegister,这导致存储过程正常工作。 DECLARE totalRegister INTEGER; SET @sqlstmt = CONCAT('SELECT COUNT(DISTINCT(msisdn)) INTO @totalRegister FROM sm_history.svc_mgmt_',@yesterdayMonth ,' WHERE action_t ... -
在Oracle中选择变量(Select Variable in Oracle)[2022-01-22]
在Oracle中它看起来像这样。 DECLARE v_Init_Cnt number(10) :=1; v_Tot_cnt number(10); BEGIN select count(distinct column_name) INTO v_Tot_cnt from mytable; WHILE (v_Init_Cnt <= v_Tot_cnt) LOOP --Insert statemen ... -
我们quote/quo然后评估!! x <- quo(mpg:am) out1 <- mtcars %>% gather(type, value, !! x) 检查输出 out2 <- mtcars %>% gather(type, value, mpg:am) identical(out1, out2) #[1] TRUE We can quote/quo it and then evaluate with !! x <- quo(mpg:am) out1 ...
-
var curency = "eur"; var myprice = json.x.price[curency]; json.x.price[curency] === json.x.price.eur; // true 您可以通过点或[] -notation来访问对象的属性。 另一个例子: var o = { 'my property': 100 }; // "my property" can not be accessed by dot-notation o['my property'] === 1 ...
-
MySQL SQL:SELECT(SELECT ... as variable)FROM(MySQL SQL: SELECT (SELECT… as variable) FROM)[2022-02-27]
使用连接到子选择。 在子选择中计算每个orderid的总计。 SELECT orders.orderid, orders.quantity, totals.total_in_order FROM orders JOIN ( SELECT orderid, SUM(quantity) AS total_in_order FROM orders GROUP BY orderid ) AS totals ON orders.orderid = totals.orde ... -
TSQL选择变量(TSQL select into a variable)[2022-09-21]
不。 如果底层SELECT返回零行(当使用> max值时会发生),则不会进行赋值,并保留该变量的初始值。 你可以使用@@rowcount来检查这个。 如果多于一行匹配在top之前,您需要通过order by获取确定性结果。 DECLARE @tname AS VARCHAR(100) = 'F99Special_DMT'; SELECT TOP(1) @tname = form_name FROM [dbo].[forms] WHERE form_name > @tname ORDER BY fo ... -
如何通过选择设置变量?(How to set variable by select?)[2023-08-12]
试试这样: select @desc_out:=desc01,@flag_out:=flag from A01 where id=@id_in 即,要在MYSQL中将变量设置为select ,您需要使用:=而不是= 如果你可以在select使用它们之前declare你的变量会更好。 Try like this: select @desc_out:=desc01,@flag_out:=flag from A01 where id=@id_in ie for setting the variable i ... -
变量未通过选择设置(Variable not getting set by select)[2022-01-10]
看起来你的WHERE子句可能会阻止该行返回。 你提到你已经测试了相同的SELECT而没有设置变量,但你列出的代码不包括这个WHERE - 所以它不一样。 使用WHERE测试您的SELECT ,使用虚拟值(可能为NULL )并查看。 它听起来好像没有返回结果。 Looks like your WHERE clause could be stopping the row from returning. You mentioned you've tested the same SELECT without set ... -
如果您没有传递显式连接参数, mysql_函数将隐式使用使用mysql_connect打开的最后一个连接。 所以,是的,在这种情况下,无论您是否传递参数,结果都是相同的。 如果碰巧使用mysql_connect打开多个连接,您将得到不同的结果。 请注意,隐含地依赖于开放连接是不好的做法,正是因为如果您需要稍后打开更多连接,您的应用程序将会搞砸。 另请注意,mysql_ API已死,切换到mysqli或PDO。 The mysql_ functions will implicitly use the last ...