xcode进行编程时可以运行。但加了语句后,运行也通过,模拟器会黑屏。
解决方案 »
- .net程序是否可以移植到pad
- 程序运行的时候突然闪退!!!!!!!!!!!如何找问题????
- Android平板电脑,可以编译,调试。C和Objact C语言程序么?
- 在将IPHONE中的文件输出到excel
- 真机发布提示 Code Sign Err
- 请教QQ的发送图片功能是怎么实现的
- xcode发布显示App有错误,望大神问指点!
- 求助,storyboard中如何通过动态创建的按钮来实现跳转到另一个页面呢?
- IOS富文本图形文本转换
- 请教投射功能
- UIView调用addSubview后怎么立即显示??
- 使用vm 8.0虚拟机 装 Mac.OS.X.10.6.3系统时,在跳转到安装界面时,vm虚拟机出现如下故障
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}
#import "bE1ViewController.h"
@implementation bE1ViewController
//@implementation buttonExampleViewController
@synthesize myLabel;
-(void) tapA:(id)sender {
myLabel.text = @"我按了 A 按钮";
}
-(void) tapB:(id)sender {
myLabel.text = @"我按了 B 按钮";
}
@end
//#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>@interface bE1ViewController : UIViewController{
IBOutlet UILabel *myLabel; }
@property (retain, nonatomic) UILabel *myLabel;
-(IBAction) tapA:(id)sender;
-(IBAction) tapB:(id)sender;
@end
是否有指定首先显示的view:- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
// Override point for customization after application launch.
self.viewController = [[[ViewController alloc] initWithNibName:@"ViewController" bundle:nil] autorelease];
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
return YES;
}如果你使用storyboard,检查是否指定了入口viewcontroller,即 initial view controller