我是IOS开发的新手.我正在为IOS 8设备开发一个应用程序.昨天我使用故事板为我的设计我的故事板显示所有的UI设计,但今天早上它显示空白UIViewController没有UI元素视觉请在屏幕截图中看到,非常奇怪的是,当我运行我的应用程序所有ui元素在我的设备中可见.我谷歌,但没有找到任何解决方案,请帮助我.先感谢您.

我想为EditText框设置最小和最大输入值.我正在为EditText创建一个简单的验证; 它采用AZ和0-9值,最小值为5,最大值为8.
我设置了最大值和其他验证如下:
<EditText
android:id="@+id/edittextKode_Listing"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginRight="5dp"
android:layout_marginLeft="5dp"
android:layout_alignTop="@+id/textKode_listing"
android:layout_toRightOf="@+id/textKode_listing"
android:maxLength="8"
android:inputType="textCapCharacters"
android:digits="0,1,2,3,4,5,6,7,8,9,ABCDEFGHIJKLMNOPQRSTVUWXYZ"
/>
Run Code Online (Sandbox Code Playgroud)
但无法设定最低价值要求.我的EditText框位于警告对话框中.我尝试了以下代码来解决问题:
private void openInboxDialog() {
LayoutInflater inflater = this.getLayoutInflater();
// declare dialog view
final View dialogView = inflater.inflate(R.layout.kirim_layout, null);
final EditText edittextKode = (EditText) dialogView.findViewById(R.id.edittextKode_Listing);
final EditText edittextalamat = (EditText) dialogView.findViewById(R.id.edittextAlamat);
edittextKode.setOnFocusChangeListener(new OnFocusChangeListener() {
@Override
public void onFocusChange(View v, boolean hasFocus) {
// TODO Auto-generated method stub
if(edittextKode.getText().toString().length() > 0){
if(edittextKode.getText().toString().length() < 5)
{
edittextKode.setError("Error");
Toast.makeText(GPSActivity.this, "Kode listing value not be less than 5", Toast.LENGTH_SHORT).show(); …Run Code Online (Sandbox Code Playgroud) 我正在开发一个应用程序,显示来自服务器的不同照片,用户可以将选定的照片设置为其设备的壁纸我使用给定代码设置壁纸工作但图像设置不正确它不适合屏幕.我用过这段代码.
String dirPath = getFilesDir().toString();
String folder = mPhotos.get(nextPosition - 1).getCategory();
String filePath = dirPath + "/PhotoViewer/" + folder + "/"
+ mPhotos.get(nextPosition - 1).getFileName();
File imageFile = new File(filePath);
Bitmap bitmap = BitmapFactory.decodeFile(imageFile
.getAbsolutePath());
WallpaperManager myWallpaperManager = WallpaperManager
.getInstance(getApplicationContext());
try {
myWallpaperManager.setBitmap(bitmap);
Toast.makeText(PhotoActivity.this, "Wallpaper set",
Toast.LENGTH_SHORT).show();
} catch (IOException e) {
Toast.makeText(PhotoActivity.this, "Error setting wallpaper",
Toast.LENGTH_SHORT).show();
}
Run Code Online (Sandbox Code Playgroud)
请帮帮我.
我正在开发一个从PHP服务器接收推送通知的iPhone应用程序.
要发送通知,我正在使用Google Cloud Messaging.GCM在iPhone开发环境中运行良好,但我无法接收iPhone生产环境的通知,并且我不断收到此错误消息:
{
"multicast_id":7214972633373567187,
"success":0,
"failure":1,
"canonical_ids":0,
"results":[
{
"error":"NotRegistered"
}
]
}
Run Code Online (Sandbox Code Playgroud)
我尝试了很多,也搜索了很多,但没有找到解决这个问题的任何解决方案.请帮帮我.
我创建了.p12生产环境证书并将其上传到Google Cloud Messaging配置文件.