我们为iphone开发支付了开发者帐户,我们有2个iphone,一个监狱被打破,另一个非监狱被打破.我们已经注册了两部手机用于开发并获得了配置文件.我们可以使用非越狱手机进行开发.但我们尝试使用jail破碎的手机进行开发我们收到消息错误启动可执行文件没有配置的iphone设备已连接.
但我们可以使用ad hoc配置文件在其上测试应用程序.这是否意味着越狱设备不能用于开发?问候,Manish
我在我的代码中使用多个UIAlertViews,如下所示
-(void) myfunc
{
myAlertView1 = [[UIAlertView alloc] initWithTitle:@"Message" message:[list objectAtIndex:1] delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:nil];
[myAlertView1 show];
[myAlertView1 release], myAlertView1 = nil;
{
do something
}
myAlertView = [[UIAlertView alloc] initWithTitle:@"Error" message:[list objectAtIndex:1] delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:nil];
[myAlertView show];
[myAlertView release], myAlertView = nil;
}
Run Code Online (Sandbox Code Playgroud)
当我在模拟器中运行程序时,我看到myAlertView1(消息)短暂,它没有等待Ok按钮单击然后我看到myAlertView(错误)等待Ok按钮单击,然后我再次看到myAlertView1(消息),它等待,直到确定按钮点击.
从逻辑上讲,我想看 myAlertView1(消息)并等到单击确定按钮,然后看到myAlertView(错误)并等到按钮被单击.我在这里错过了什么吗?
我使用的是iphone_sdk_3.0_beta_5__9m2735 SDK.当我尝试使用模拟器3.0选项编译我的代码时,我得到以下错误.代码编译为休息所有模拟器选项,即2.0,2.1,2.2,2.2.1编译我的代码时,我得到以下错误
from /Users/videomac/manish/EXPLab/2009-05-27-11-20 myApp_LL_2/myApp_Prefix.pch:7: In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:30, /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalizedIndexedCollation.h:11: error: syntax error before 'AT_NAME' token /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalizedIndexedCollation.h:19: error: syntax error before '}' token /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UILocalizedIndexedCollation.h:21: fatal error: method definition not in @implementation context
错误位于文件UILocalizedIndexedCollation.h,这是SDK文件.我正在使用SDK 3.0的UIKit Framework.任何人都可以告诉我该怎么做才能删除此错误?