我是一个新的iPhone应用程序开发人员.我想知道view和viewcontroller有什么区别.
如何禁用UserInteraction
的UITableview
细胞,但没有在该单元格的自定义按钮..
我正在创建一个按钮使用:
UIButton *dayButton = [UIButton buttonWithType:UIButtonTypeCustom];
[dayButton setFrame:CGRectMake(201, 0, 30, 35)];
[dayButton addTarget:self action:@selector(selectDayView) forControlEvents:UIControlEventTouchUpInside];
[dayButton setBackgroundImage:[UIImage imageNamed:@"86-camera.png"] forState:UIControlStateNormal];
dayButton.userInteractionEnabled=YES;
[cell addSubview:dayButton];
Run Code Online (Sandbox Code Playgroud)
然后我就开始了
cell.userInteractionEnabled=NO;
Run Code Online (Sandbox Code Playgroud)
我该怎么dayButtonAction
办?
我正在iphone上创建一个simle应用程序.我想将iphone应用程序更改为ipad application.how来制作它?
那么如何更改视图大小意味着通过界面构建器..
我无法理解为什么我无法在Interface Builder中的xib中调整UIView的大小.
我在xcode和大小检查器中创建了一个新的视图XIB,宽度和高度被禁用并变灰到320乘以460我想要更改720*720
我通过Inteface构建器创建所有视图......谢谢
我想在前面添加启动画面和前面的acttivity指示器...为此我在Appdelegate.m中添加以下代码
splashView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
splashView.image = [UIImage imageNamed:@"Default.png"];
acivityindicator = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(67, 24, 30, 30)];
acivityindicator.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhite;
acivityindicator.autoresizingMask = (UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin);
[window addSubview:splashView];
[window addSubview:acivityindicator];
[window makeKeyAndVisible];
[window bringSubviewToFront:acivityindicator];
[acivityindicator startAnimating];
Run Code Online (Sandbox Code Playgroud)
但只有启动画面正在工作.Activityinicator没有出现.我怎么了