English 中文(简体)
如何根据目标C中的故事书中的某些条件提出新的观点
原标题:how to go to a new view based on a certain condition in StoryBoards in objective C

我是新到的Pipe Development。

我有一张标语,我想找到某种方式去做。

if (x==0) { go to view 1 }

else if (x==1) { go to view 2 }

增 编

最佳回答

http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIViewController_Class/Reference/Reference.html“rel=“nofollow”>。

- (void)performSegueWithIdentifier:(NSString *)identifier sender:(id)sender
问题回答

你可以从最初的角度来看在X条码中形成gues,以观察1和2 (ctrl drag)并给出每个标识。

然后使用<代码>performSegueWithIdentifier:sender,视你的情况,逐个观察。





相关问题
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, ...

热门标签