应用程序没有启动画面Xcode 5(App without splash screen Xcode 5)
当我没有任何飞溅图像时,我得到一个黑屏。 是否有可能没有启动画面的应用程序?
When I don't have any splash image, I'm getting a black screen. Is it possible to have an App without splash screen?
原文:https://stackoverflow.com/questions/22558082
最满意答案
所以基本上你可以将你的问题视为列的连接,如果它们与
^\d+$
正则表达式不匹配,否则为空字符串。 您可以在MySQL文档中找到有关REGEXP , CONCAT和CASE的更多文档,但下面有代码,可能会引导您实现您想要实现的目标:SELECT CONCAT( CASE WHEN a REGEXP '^[[:digit:]]+$' THEN '' ELSE a END, CASE WHEN b REGEXP '^[[:digit:]]+$' THEN '' ELSE b END, CASE WHEN c REGEXP '^[[:digit:]]+$' THEN '' ELSE c END, CASE WHEN d REGEXP '^[[:digit:]]+$' THEN '' ELSE d END) as result FROM your_table;
当然你可以使用
NOT REGEXP
,但对我来说这样更清楚。So basically you may look at your problem as concatenation of columns if they do not match
^\d+$
regular expression or empty string otherwise. You may find more documentation on REGEXP, CONCAT and CASE in MySQL docs, but below there is code, that may lead you to what you want to achieve:SELECT CONCAT( CASE WHEN a REGEXP '^[[:digit:]]+$' THEN '' ELSE a END, CASE WHEN b REGEXP '^[[:digit:]]+$' THEN '' ELSE b END, CASE WHEN c REGEXP '^[[:digit:]]+$' THEN '' ELSE c END, CASE WHEN d REGEXP '^[[:digit:]]+$' THEN '' ELSE d END) as result FROM your_table;
Of course you may use
NOT REGEXP
instead, but for me it's clearer this way.
相关问答
更多-
在方法的顶部使用以下guard子句: if (!preg_match("/^[a-z]$/", $param)) { // throw an Exception... } 如果您还想允许使用大写字母,请相应地更改正则表达式: if (!preg_match("/^[a-zA-Z]$/", $param)) { // throw an Exception... } 另一种支持不区分大小写的方法是使用/i大小写不敏感修饰符: if (!preg_match("/^[a-z]$/i", $pa ...
-
有什么数据库专业书籍介绍?[2022-05-19]
mysql -
你有没有试过改变这条线 mHandler.postDelayed(mRemoveWindow, 3000); 喜欢的东西 mHandler.postDelayed(mRemoveWindow, 500); 基本上,尝试和延迟时间玩。 Have you tried to change the line mHandler.postDelayed(mRemoveWindow, 3000); to something like mHandler.postDelayed(mRemoveWindow, 500); ...
-
更改: char letter= "4"; 至: char letter= '4'; 同时启用编译器警告 (例如gcc -Wall ... ) - 让编译器为您捕获这样的愚蠢错误,并为您节省大量时间和精力。 请注意,您可能希望IS_ALPHABETIC返回TRUE / FALSE(1/0)而不是n或5。 在编程风格问题上,尝试更加符合命名,格式化,使用括号等,例如,这里是代码的清理版本: #include
#define IS_UPPER_CASE(n) ((n) >= 'A' & ... -
我自己也陷入了困境。 因为Abbreviation列可以是NULL或具有值,所以我可以使用COALESCE来获取第一个非空列,换句话说: select id, coalesce(abbreviation, name) as thename from sometable order by thename; bumped into solution myself. since Abbreviation column can be NULL or have value, I can use COALESCE t ...
-
主要问题是你的for循环 for (loopPointer1 = 1; loopPointer1 > stringLength; loopPointer1++ ) C中的数组从0开始,中间部分定义循环是否应该继续。 所以你想要的是: for (loopPointer1 = 0; loopPointer1 < stringLength; loopPointer1++ ) 然后为了检查每个字符,你不需要对它们做任何事情,因为你可以比较像这样的字符 if (string[loopPointer] >= 'A' ...
-
MySQL - 如何连接包含至少一个字母字符的列(MySQL - How to concatenate columns that contain at least one alphabetic character)[2023-09-25]
所以基本上你可以将你的问题视为列的连接,如果它们与^\d+$正则表达式不匹配,否则为空字符串。 您可以在MySQL文档中找到有关REGEXP , CONCAT和CASE的更多文档,但下面有代码,可能会引导您实现您想要实现的目标: SELECT CONCAT( CASE WHEN a REGEXP '^[[:digit:]]+$' THEN '' ELSE a END, CASE WHEN b REGEXP '^[[:digit:]]+$' THEN '' ELSE b END, ... -
您可以为grep使用-E选项: dmesg | grep -E 'HD*|SD*' 对于您的具体示例,您甚至不需要-E选项。 他说: dmesg | grep '[HS]D*' 就够了 You could use the -E option for grep: dmesg | grep -E 'HD*|SD*' For your specific example, you don't even need the -E option. Saying: dmesg | grep '[HS]D*' wou ...
-
您可以使用CONCAT_WS函数( docs )和一些IF语句。 SELECT tn.ID, CONCAT_WS( ',', IF(tn.a='x','a',null), IF(tn.b='x','b',null), IF(tn.c='x','c',null) ) as result FROM TableName tn; You can use the CONCAT_WS function (docs) and some IF statements. SELECT tn.ID, CONCA ...
-
您需要使用视图,子查询或重复表达式。 它也可以简化为: SELECT concat_ws('=>', column_1, column_2, column_3) as column_union, concat_ws('#**#', column_4, column_5, concat_ws('=>', column_1, column_2, column_3) ) as another_column_union FROM t ...