我在将我的应用程序从Xcode提交到App Store时遇到了问题.我已经完成了有关我的项目的一切,并且在我的iPhone和iPad上运行正常.但是当我提交我的项目时,我面临着一个巨大的问题.
存档后我首先完成了验证.现在,我在Organizer中的存档文件也显示状态传递验证.所以我相信我正处于提交应用程序的最后一步.
我点击了分发并选择了提交应用到应用商店.
登录后我也选择了配置文件.
我被困在这里.您可以在下面的屏幕截图中看到.我从来没有见过任何
进度条,我可以看到提交进度或类似的东西.
我只能看到的屏幕是:

编辑:
差不多大约1.30小时.互联网连接正常.我的ipa文件只有3.5 MB.
而在去年,当我试图应用程序加载器来上传我收到了下面的屏幕以及很长一段时间在同一个与iTunes商店认证... ..

我现在应该怎么做?
我正在构建一个应用程序,我想从Youtube,Vimeo,Direct url等网址播放视频.我正在使用AVPlayer制作自定义播放器,从视频剪辑的直接网址(如www.abc/play.mp4)播放视频.但后来我遇到了播放youtube和vimeo视频的巨大问题.在搜索了很多之后,我发现这些链接在不使用UIWebview的情况下我无法播放Youtube链接:
使用MPMoviePlayerController而不是UIWebView播放YouTube视频
在没有UIWebView的情况下播放来自youtube链接的视频
所以我只使用了这段代码:
NSString *youTubeVideoHTML = @"<html><head><style>body{margin:0;}</style></head> <body> <div id=\"player\"></div> <script> var tag = document.createElement('script'); tag.src = 'http://www.youtube.com/player_api'; var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); var player; function onYouTubePlayerAPIReady() { player = new YT.Player('player', { width:\'100%%\', height:'200px', videoId:\'%@\', events: { 'onReady': onPlayerReady } }); } function onPlayerReady(event) { event.target.playVideo(); } </script> </body> </html>";
NSString *html = [NSString stringWithFormat:youTubeVideoHTML, videoId];
self.embedded_player_view.mediaPlaybackRequiresUserAction = NO;
[self.embedded_player_view loadHTMLString:html baseURL:[[NSBundle mainBundle] resourceURL]];
Run Code Online (Sandbox Code Playgroud)
现在当我从tableview点击youtube/Vimeo视频链接时,它使用默认播放器即即时播放器播放视频.它没有在UIWebview框架内运行视频.但我想在屏幕的上半部分显示视频,即我的UIWebview框架.那可能吗?
在我的应用程序中,我可以看到:


我正在构建应用程序(计算器).我使用带有按钮的表格布局.它在三星Galaxy II的屏幕上看起来很完美,但在大屏幕上看起来非常糟糕.按钮高度很小.如何在更大的屏幕上拉伸按钮?
布局XML如下:
<ScrollView xmlns:android="http://schemas.an
xmlns:tools="http://schemas.android.com/
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="right"
android:paddingBottom="@dimen/activity_v
android:paddingLeft="@dimen/activity_hor
android:paddingRight="@dimen/activity_ho
android:paddingTop="@dimen/activity_vert
tools:context=".MainActivity" >
<TableLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="right"
>
<TableRow
android:id="@+id/tableRow1"
android:layout_width="match_parent"
android:layout_height="0dp">
<Button
android:id="@+id/Button01"
android:layout_width="0dp"
android:layout_weight="0.33"
android:layout_height="fill_pare
android:text="@string/button_1"
android:visibility="visible" />
<Button
android:id="@+id/Button02"
android:layout_width="0dp"
android:layout_weight="0.34"
android:layout_height="fill_pare
android:text="@string/button_2"
<Button
android:id="@+id/Button03"
android:layout_width="0dp"
android:layout_weight="0.33"
android:layout_height="fill_pare
android:text="@string/button_3"
</TableRow>
<TableRow
android:id="@+id/tableRow2"
android:layout_width="match_parent"
android:layout_height="0dp" >
<Button
android:id="@+id/Button04"
android:layout_width="0dp"
android:layout_weight="0.33"
android:layout_height="fill_parent"
android:text="@string/button_4" />
<Button
android:id="@+id/Button05"
android:layout_width="0dp"
android:layout_weight="0.34"
android:layout_height="fill_parent"
android:text="@string/button_5" />
<Button
android:id="@+id/Button06"
android:layout_width="0dp"
android:layout_weight="0.33"
android:layout_height="fill_parent"
android:text="@string/button_6" />
</TableRow>
<TableRow
android:id="@+id/tableRow3"
android:layout_width="match_parent"
android:layout_height="0dp" >
<Button
android:id="@+id/Button07"
android:layout_width="0dp" …Run Code Online (Sandbox Code Playgroud) android android-layout android-resolution android-tablelayout
我的活动中两侧都有两个导航抽屉.我不需要通过滑动手势打开正确的导航抽屉.
如果我使用:
mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED)
Run Code Online (Sandbox Code Playgroud)
要锁定滑动,左右两个抽屉都会锁定.但我希望左侧抽屉能够检测到轻扫手势.我该怎么做呢?
<android.support.v4.widget.DrawerLayout
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<FrameLayout
android:id="@+id/content_frame"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<ListView
android:id="@+id/left_drawer"
android:layout_width="@dimen/nav_drawer_width"
android:layout_height="match_parent"
android:layout_gravity="left" />
<ListView
android:id="@+id/right_drawer"
android:layout_width="@dimen/nav_drawer_width"
android:layout_height="match_parent"
android:layout_gravity="right" />
</android.support.v4.widget.DrawerLayout>
Run Code Online (Sandbox Code Playgroud) 最近我正在为android构建一个应用程序.我正在使用phonegap来做同样的事情.一切都运行良好,除了一个问题,即我无法在Android中使用jquery打开pdf文件.我已经尝试了很多相同但我无法做到这一点.
我想要的是,点击图像后,它将从网址打开一个pdf.
编辑:
我试过这个:
<img src="img/b_img1.png" onclick="openPdf('http://www.w3.org/2011/web-apps-ws/papers/Nitobi.pdf')"/>
Run Code Online (Sandbox Code Playgroud)
openPdf函数是这样的:
function openFile(pdfUrl) {
window.plugins.fileOpener.open(pdfUrl);
}
Run Code Online (Sandbox Code Playgroud)
fileOpener插件是这样的:
cordova.define("cordova/plugin/fileopener",
function(require, exports, module) {
var exec = require("cordova/exec");
var FileOpener = function() {};
FileOpener.prototype.open = function(url) {
exec(null, null, "FileOpener", "openFile", [url]);
};
var fileOpener = new FileOpener();
module.exports = fileOpener;
});
/**
* Load Plugin
*/
if (!window.plugins) {
window.plugins = {};
}
if (!window.plugins.fileOpener) {
window.plugins.fileOpener = cordova.require("cordova/plugin/fileopener");
}
Run Code Online (Sandbox Code Playgroud)
我在config.xml页面中添加了插件,如下所示:
<plugin name="FileOpener" value="com.phonegap.plugins.file.FileOpener"/>
Run Code Online (Sandbox Code Playgroud)
我已经在com.phonegap.plugins.file包中添加了FileOpener.java,如下所示:
package com.phonegap.plugins.file;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import …Run Code Online (Sandbox Code Playgroud) 我想使用解析数据库来开发Web应用程序,因为数据将从桌面PC上传,并且将在解析移动应用程序中进行相同的撤销.
是否可以将解析数据库用于网站后端?
因为我想为应用程序和桌面版本使用相同的解析数据库.
任何人都可以帮助我,通过提供一些想法如何实现这一点?
提前致谢.
我正在开发一个活动,其中我使用列表视图与表格布局.我想在列表视图中显示图像和文本,但问题是图像显示略微超出列表顺序
img1 text1 img1 text1
img2 text2 and i want this img2 text2
img3 text3 img3 text3
img4 text4 img4 text4
img5 text5 img5 text5
Run Code Online (Sandbox Code Playgroud)
这样..所以关于列表视图或图像视图的属性的任何想法,以正确设置它?那么PLZ评论......
list_row.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight"
android:background="#ffffff"
android:padding="6dip" >
<TableLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:background="#ffffff"
android:stretchColumns="*" >
<TableRow>
<ImageView
android:id="@+id/icon"
android:layout_gravity="left"
android:background="#ffffff"
android:padding="2dip" />
<TextView
android:id="@+id/description"
android:background="#ffffff"
android:padding="2dip"
android:singleLine="true"
android:textColor="#000000"
android:textSize="12sp" />
</TableRow>
</TableLayout>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
main.xml中
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ffffff">
<ListView
android:id="@+id/android:list"
android:background="#ffffff"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:dividerHeight="1dip"/>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud) 请帮我在listview项目中显示进度对话框.
public class DealerSubCatListAdapter extends BaseAdapter {
private Context context;
private ArrayList<Image> Image;
private LayoutInflater inflater = null;
public DealerSubCatListAdapter(Context context, ArrayList<Image> Image) {
this.context = context;
this.Image = Image;
inflater = (LayoutInflater) context
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
notifyDataSetChanged();
}
@Override
public int getCount() {
return Image.size();
}
@Override
public Object getItem(int position) {
return position;
}
@Override
public long getItemId(int position) {
return position;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
View view = null;
if (convertView == …Run Code Online (Sandbox Code Playgroud) 我已经使用片段标签主机一段时间了,它工作正常.突然间我得到了这个布局编译错误.
Exception raised during rendering: No tab known for tag null
Run Code Online (Sandbox Code Playgroud)
activity_tabhost_search.xml:
<android.support.v4.app.FragmentTabHost
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TabWidget
android:id="@android:id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:orientation="horizontal" />
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1" />
</LinearLayout>
</android.support.v4.app.FragmentTabHost>
Run Code Online (Sandbox Code Playgroud)
请不要将它关闭,因为我检查了所有线程,但我无法解决这个问题.
我曾在phonegap中使用过几个应用程序.每次我使用phonegap docs的以下链接中的给定步骤构建新项目时:
http://docs.phonegap.com/en/2.0.0/guide_getting-started_ios_index.md.html
但我在每种情况下都看到有15个警告:
/Users/Webgrity/Desktop/BramAutoGroup/BramAutoGroup/Classes/AppDelegate.m:81:25: 'useSplashScreen' is deprecated: Deprecated in Cordova 2.5. Add/Remove the SplashScreen plugin instead of setting this property.
/Users/Webgrity/Desktop/BramAutoGroup/CordovaLib/Classes/CDVFile.m:804:54: Implicit conversion loses integer precision: 'long long' to 'unsigned long'
/Users/Webgrity/Desktop/BramAutoGroup/CordovaLib/Classes/CDVFile.m:805:108: Implicit conversion loses integer precision: 'long long' to 'NSUInteger' (aka 'unsigned int')
/Users/Webgrity/Desktop/BramAutoGroup/CordovaLib/Classes/CDVFile.m:1075:54: Implicit conversion loses integer precision: 'long long' to 'unsigned long'
/Users/Webgrity/Desktop/BramAutoGroup/CordovaLib/Classes/CDVFile.m:1076:108: Implicit conversion loses integer precision: 'long long' to 'NSUInteger' (aka 'unsigned int')
/Users/Webgrity/Desktop/BramAutoGroup/CordovaLib/Classes/CDVFile.m:1282:98: Implicit conversion loses integer precision: 'unsigned long long' to …Run Code Online (Sandbox Code Playgroud)