English 中文(简体)
UINavig 主计长 - 部分食堂—— 另一排烟?
原标题:UINavigationController -> Partial Curl Segue -> Another Segue?
  • 时间:2012-05-11 18:48:45
  •  标签:
  • ios
  • segue

我有一支主要的UINavigationController, 履行一个部分的Curl gue,显示一套在交换机上。 部分交换机/交换机必须确保有组合变量(如四舍五入)。 如果这些组合不存在,那么我就希望推动另一种认证的Segue(占4.0%)。 现在, 如果我从库勒部分盖的主计长那里做以下工作:

FoursquareAuthViewController *controller = [[FoursquareAuthViewController alloc] init];
[self presentModalViewController:controller animated:YES];

四名首席仲裁员将接替本部分的库勒。 适当开展这项工作的最佳方式是: 四名总书记长是否接受全方位的筛选,最好是从单程式排出?

I was thinking about passing the source controller as the delegate to the Partial Curl controller, then when the switch is flipped, checking if the configuration exists. If it does not, trigger the delegate to push the FoursquareAuthViewController. It just seems kind of goofy to do that way...

最新情况:

企图将下列任何一分子混为一谈。

FoursquareAuthViewController *controller = [[FoursquareAuthViewController alloc] init];
[[[self presentingViewController] navigationController] pushViewController:controller animated:true];


FoursquareAuthViewController *controller = [[FoursquareAuthViewController alloc] init];
[[self presentingViewController] presentModalViewController:controller animated:YES];
问题回答

我不敢肯定这是否有助于从来文方的观察控制者而不是从开关的观察者那里向控制者介绍你的四舍五入。 但是,如果是这样的话,你就不需要经过观察的控制器的“货物”状况,而你描述的是:从开关人的角度来看待控制器,你可以自行查阅<代码>,代之以Controller号,以获得源头控制器。





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

热门标签