English 中文(简体)
观点控制者的基本原理——我失踪了什么?
原标题:Viewcontroller basics - What am I missing?

I m a newbie App developer.

我一直在跟踪几本书,包括“每个日元的开发”。 (以略为过时的X代码为基础)。

即便存在这些差异,我也认为,当你开始“调查”项目,将一些顿子和标签丢给我的应用观察员。 无需进行任何联系? 权利?

我失踪了什么?

• 采取下列步骤:

1

<>2> 在我的观察控制器上添加一个子。

3

为什么我翻了一页,说“文字”。 我先加了一个标签,我可以认为“文字”是任何东西的变量。

问题回答

选择项目产生的轴心,或许是主要意见或类似内容,除非自引入故事板以来情况已经发生变化。 Click on that xib in the list of file to show Interface Buildinger in the pane on the right. 在法典中,应该有你认为的图形要素。

然而,我不肯定你为什么在“文字”上显示,我建议对你们的项目使用最新的X码,因为除了故事板的特征外,还有许多新bie的头痛被利用去连接。

如果你想测试一个纽州,那么你可以使用该守则来开始:

In ViewController.h:

#import <UIKit/UIKit.h>

@interface ViewController : UIViewController {

IBOutlet UIButton *buttonName;

}

@property (nonatomic, retain) UIButton *buttonName;

@end

之后任主计长。 页: 1

#import "ViewController.h"

@implementation ViewController

@synthesize buttonName;

@end

Might be that you just need to set the window s Root View Controller in the applicationDidFinishLaunchingWithOptions: method of your App Delegate?





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...