我创建两个Localizable.strings文件,一个用于英语,第二个用于阿拉伯语:
/* The number 1 */
"LABEL_ONE" = "label number one";
Run Code Online (Sandbox Code Playgroud)
我使用此代码来获取字符串值:
[self.Lable1 setText:NSLocalizedString(@"LABEL_ONE", @"The number 1")];
Run Code Online (Sandbox Code Playgroud)
但应用程序显示"LABEL_ONE"而不是"标签第一"?有什么问题 ?谢谢
每次我想启动eclipse我都会收到这个错误:eclipse非常意外:
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000000000003c
VM Regions Near 0x3c:
-->
__TEXT 0000000100000000-0000000100004000 [ 16K] r-x/rwx SM=COW /Applications/Eclipse.app/Contents/MacOS/eclipse
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.CoreFoundation 0x00007fff8a61b0c7 CFBundleGetFunctionPointerForName + 39
1 org.eclipse.platform.ide 0x000000010000306b findSymbol + 66
2 org.eclipse.platform.ide 0x00000001000017f6 original_main + 1572
3 org.eclipse.platform.ide 0x0000000100001eb5 main + 1230
4 org.eclipse.platform.ide 0x0000000100001090 start + 52
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff8ed17662 kevent64 + 10
1 libdispatch.dylib 0x00007fff88333421 _dispatch_mgr_invoke + …Run Code Online (Sandbox Code Playgroud) 从客户那里收到图像后,我想调整它的大小然后存储它。我正在使用这个功能:
function PIPHP_ImageResize($image, $w, $h)
{
$oldw = imagesx($image);
$oldh = imagesy($image);
$temp = imagecreatetruecolor($w, $h);
imagecopyresampled($temp, $image, 0, 0, 0, 0,
$w, $h, $oldw, $oldh);
return $temp;
}
$image = PIPHP_ImageResize($_FILES['file']['tmp_name'],10,10);
move_uploaded_file($image, $newname);
Run Code Online (Sandbox Code Playgroud)
不幸的是我收到了这些警告:
我该如何解决这个问题!!