Re: Custom UIViewController transitions with segues

2015-12-31 Thread Rick Mann
; weird since this is not technically a modal presentation, is it?). >>>>> >>>>> Search for solutions online turns up only custom segues, which is not >> really what I want. >>>>> >>>>> Is it even possible to do this with segues? What a

Re: Custom UIViewController transitions with segues

2015-12-30 Thread Rick Mann
it even possible to do this with segues? What am I missing? >> >> TIA, > > My thought here is that push != present, ie pushViewController(_:animated) > doesn’t do the same thing as presentViewController(_:animated:completion) and > that push calls the former and other

Re: Custom UIViewController transitions with segues

2015-12-30 Thread Roland King
nimated) doesn’t do the same thing as presentViewController(_:animated:completion) and that push calls the former and other modes call the latter. I dunno what I’d try, the whole UIViewController custom transitioning thing confuses the bananas out of me and I never found the WWDC videos on them to be a

Re: Custom UIViewController transitions with segues

2015-12-30 Thread Rick Mann
t push != present, ie pushViewController(_:animated) >> doesn’t do the same thing as presentViewController(_:animated:completion) >> and that push calls the former and other modes call the latter. I dunno what >> I’d try, the whole UIViewController custom transit

Custom UIViewController transitions with segues

2015-12-30 Thread Rick Mann
I have a UICollectionView in a UINavigationController, and I'd like to customize the transition from one to the next on push. So I set up the first VC as UIViewControllerTransitioningDelegate, and in prepareForSegue(_:sender:) set the destination VC's transitioningDelegate to self. But my

Re: Custom UIViewController transitions with segues

2015-12-30 Thread Sixten Otto
gt; My thought here is that push != present, ie > pushViewController(_:animated) doesn’t do the same thing as > presentViewController(_:animated:completion) and that push calls the former > and other modes call the latter. I dunno what I’d try, the whole > UIViewController custom transi

Re: crashing on -[UIViewController presentViewController:animated:completion:] on ios 8

2014-09-23 Thread David Duncan
= [[GlobalSettingsViewController alloc] initWithGroupDataSource:self.dataSource]; navigationController = [[UINavigationController alloc] initWithRootViewController:c]; UIViewController *vc = UIApplication sharedApplication] delegate] window] rootViewController]; [vc

Re: crashing on -[UIViewController presentViewController:animated:completion:] on ios 8

2014-09-23 Thread Herman Chan
: GlobalSettingsViewController *c = [[GlobalSettingsViewController alloc] initWithGroupDataSource:self.dataSource]; navigationController = [[UINavigationController alloc] initWithRootViewController:c]; UIViewController *vc = UIApplication sharedApplication] delegate] window] rootViewController]; [vc

Re: crashing on -[UIViewController presentViewController:animated:completion:] on ios 8

2014-09-23 Thread David Duncan
= [[GlobalSettingsViewController alloc] initWithGroupDataSource:self.dataSource]; navigationController = [[UINavigationController alloc] initWithRootViewController:c]; UIViewController *vc = UIApplication sharedApplication] delegate] window] rootViewController]; [vc

Re: crashing on -[UIViewController presentViewController:animated:completion:] on ios 8

2014-09-23 Thread Herman Chan
runTransitionForCurrentState] + 444 2 UIKit 0x2a107a0b -[UIViewController _presentViewController:presentationController:animationController:interactionController:completion:] + 822 3 UIKit 0x2a10899f -[UIViewController

Re: crashing on -[UIViewController presentViewController:animated:completion:] on ios 8

2014-09-23 Thread David Duncan
objc_msgSend + 5 1 UIKit 0x2a0f2739 -[UIPresentationController runTransitionForCurrentState] + 444 2 UIKit 0x2a107a0b -[UIViewController _presentViewController:presentationController:animationController:interactionController:completion:] + 822

Re: crashing on -[UIViewController presentViewController:animated:completion:] on ios 8

2014-09-23 Thread Herman Chan
runTransitionForCurrentState] + 444 2 UIKit 0x2a107a0b -[UIViewController _presentViewController:presentationController:animationController:interactionController:completion:] + 822 3 UIKit 0x2a10899f -[UIViewController

crashing on -[UIViewController presentViewController:animated:completion:] on ios 8

2014-09-22 Thread Herman Chan
-[UIPresentationController runTransitionForCurrentState] + 444 2 UIKit 0x2a107a0b -[UIViewController _presentViewController:presentationController:animationController:interactionController:completion:] + 822 3 UIKit 0x2a10899f -[UIViewController

Re: crashing on -[UIViewController presentViewController:animated:completion:] on ios 8

2014-09-22 Thread Ben Kennedy
On 22 Sep 2014, at 6:36 pm, Herman Chan herman...@gmail.com wrote: GlobalSettingsViewController *c = [[GlobalSettingsViewController alloc] initWithGroupDataSource:self.dataSource]; navigationController = [[UINavigationController alloc] initWithRootViewController:c]; UIViewController *vc

Re: crashing on -[UIViewController presentViewController:animated:completion:] on ios 8

2014-09-22 Thread Herman Chan
] initWithGroupDataSource:self.dataSource]; navigationController = [[UINavigationController alloc] initWithRootViewController:c]; UIViewController *vc = UIApplication sharedApplication] delegate] window] rootViewController]; [vc presentViewController:navigationController animated:YES completion:nil]; Is there a particular reason

Unbalanced calls to begin/end appearance transitions for UIViewController

2014-04-24 Thread Torsten Curdt
Based on the Apple documentation I came up with the following method to switch between controllers in a containment controller. But when there is an oldC I am getting Unbalanced calls to begin/end appearance transitions for ... on the console. - (void) showController:(UIViewController*)newC

Re: Unbalanced calls to begin/end appearance transitions for UIViewController

2014-04-24 Thread Sebastian Celis
for ... on the console. - (void) showController:(UIViewController*)newC withView:(UIView*)contentView animated:(BOOL)animated { snip [contentView addSubview:newC.view]; snip } Try it again without this addSubview call

Re: Unbalanced calls to begin/end appearance transitions for UIViewController

2014-04-24 Thread Torsten Curdt
Try it again without this addSubview call. I totally missed that transitionFromViewController:toViewController:duration:options:animations:completion: also adds the view! Thanks you so much! Problem solved. ___ Cocoa-dev mailing list

Correctly setting UIViewController backgView.image size

2013-10-16 Thread Carl Hoefs
iPad 2 (non-retina), iOS 7.0.2, Xcode 5.0 I have a UIViewController that I'm setting the background image of: viewController.backgView.image=[UIImage imageNamed:@background]; The image is sized at 768x1024, which is the resolution of the iPad display. But when I run the app on the iPad

Re: Correctly setting UIViewController backgView.image size

2013-10-16 Thread Carl Hoefs
The problem seems to be that the iPad Simulator are running the app in 2X mode, not sure why. Perhaps best moved to the Xcode list. On Oct 16, 2013, at 1:37 PM, Carl Hoefs newsli...@autonomy.caltech.edu wrote: iPad 2 (non-retina), iOS 7.0.2, Xcode 5.0 I have a UIViewController that I'm

Re: UIViewController question

2013-03-23 Thread Matt Neuburg
On Fri, 22 Mar 2013 22:02:04 -0400, Koen van der Drift koenvanderdr...@gmail.com said: I'd like to make a view layout similar to the Apple Stocks app, where the top view remains the same and the bottom view can be swiped to display different info views related to the top view. How should I

Re: UIViewController question

2013-03-23 Thread Roger Dalal
I second Matt's approach. To emulate the look of Apple Stocks, use a single UIViewController that contains a UITableView in the upper section with a horizontal scrolling UIScrollView in the lower (with paging enabled). There also appears to be a black frame in a UImageView that is masking

Re: UIViewController question

2013-03-23 Thread Koen van der Drift
Thanks, I'll explore the approach with a single UIViewController and two 'panes'. - Koen. On Mar 23, 2013, at 3:54 PM, Roger Dalal roger.da...@gmail.com wrote: I second Matt's approach. To emulate the look of Apple Stocks, use a single UIViewController that contains a UITableView

UIViewController question

2013-03-22 Thread Koen van der Drift
I'd like to make a view layout similar to the Apple Stocks app, where the top view remains the same and the bottom view can be swiped to display different info views related to the top view. How should I design the view-controllers for this? One for the top view and then some additional ones

Re: uiviewcontroller

2012-04-20 Thread Ariel Feinerman
#//apple_ref/occ/clm/UIViewControlle r/attemptRotationToDeviceOrientation is the official or unofficial way to force the UIViewController to change it orientation after pushing onto the stack or awaked from a nib? -- best regards Ariel ___ Cocoa

uiviewcontroller

2012-04-19 Thread Ariel Feinerman
Hi, is the official or unofficial way to force the UIViewController to change it orientation after pushing onto the stack or awaked from a nib? -- best regards Ariel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

RE: uiviewcontroller

2012-04-19 Thread Julius Oklamcak
the UIViewController to change it orientation after pushing onto the stack or awaked from a nib? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa

Re: UIViewController containment and storyboarding

2011-11-10 Thread Matt Neuburg
On Sat, 05 Nov 2011 21:48:42 +0800, Roland King r...@rols.org said: Is there any support for UIViewController containment with storyboarding? Yes, but you have to careful about what you mean by support. I see two possible misapprehensions here: 1) The storyboard editor knows nothing your custom

Storyboard scene and UIViewController

2011-11-03 Thread Eric E. Dolecki
I init a UIViewController class... FooViewController *fvc = [[FooViewController alloc] init]; This is great, but I have to generate all the UI for the view controller in code in the class. Is it possible to layout a scene in a Storyboard and associate it with the view controller so that the UI

Re: Storyboard scene and UIViewController

2011-11-03 Thread Conrad Shultz
On 11/3/11 12:05 PM, Eric E. Dolecki wrote: I init a UIViewController class... FooViewController *fvc = [[FooViewController alloc] init]; This is great, but I have to generate all the UI for the view controller in code in the class. Is it possible to layout a scene in a Storyboard

Re: Storyboard scene and UIViewController

2011-11-03 Thread Ben Kennedy
On 03 Nov 2011, at 12:05 pm, Eric E. Dolecki wrote: This is great, but I have to generate all the UI for the view controller in code in the class. Is it possible to layout a scene in a Storyboard and associate it with the view controller so that the UI in the scene will be used instead of me

Re: Storyboard scene and UIViewController

2011-11-03 Thread Eric E. Dolecki
Ya, but there is no nib here... On Thu, Nov 3, 2011 at 3:12 PM, Conrad Shultz con...@synthetiqsolutions.com wrote: On 11/3/11 12:05 PM, Eric E. Dolecki wrote: I init a UIViewController class... FooViewController *fvc = [[FooViewController alloc] init]; This is great, but I have

Re: Storyboard scene and UIViewController

2011-11-03 Thread Eric E. Dolecki
In my storyboard I dropped a UIViewController object in, gave it identifier deanna - it's not linked to anything (segue). For Custom Class I assigned HomeUIViewController. I gave it a bright blue background color just to make sure it's being used instead of just code. Then in my code

Re: Storyboard scene and UIViewController

2011-11-03 Thread Eric E. Dolecki
I should note I am trying to do this from the AppDelegate. On Thu, Nov 3, 2011 at 3:40 PM, Eric E. Dolecki edole...@gmail.com wrote: In my storyboard I dropped a UIViewController object in, gave it identifier deanna - it's not linked to anything (segue). For Custom Class I assigned

Re: Storyboard scene and UIViewController

2011-11-03 Thread Sixten Otto
On Thu, Nov 3, 2011 at 12:40 PM, Eric E. Dolecki edole...@gmail.com wrote: Then in my code: UIStoryboard *storyboard = [UIStoryboard storyboardWithName: @MainStoryboard bundle:[NSBundle mainBundle]]; HomeUIViewController *hv = [storyboard instantiateViewControllerWithIdentifier:@deanna];

Re: Storyboard scene and UIViewController

2011-11-03 Thread Eric Dolecki
Yup. Sent by Eric's faithful iPad. On Nov 3, 2011, at 7:21 PM, Sixten Otto hims...@sfko.com wrote: On Thu, Nov 3, 2011 at 12:40 PM, Eric E. Dolecki edole...@gmail.com wrote: Then in my code: UIStoryboard *storyboard = [UIStoryboard storyboardWithName: @MainStoryboard bundle:[NSBundle

Re: Why doesn't UIViewController retain its UISearchDisplayController

2011-10-07 Thread Matt Neuburg
On Thu, 06 Oct 2011 14:33:15 -0500, Heath Borders heath.bord...@gmail.com said: In the UIViewController documentation about the searchDisplayController property [1] it says: If you create your search display controller programmatically, this property is set automatically by the search display

Why doesn't UIViewController retain its UISearchDisplayController

2011-10-06 Thread Heath Borders
In the UIViewController documentation about the searchDisplayController property [1] it says: If you create your search display controller programmatically, this property is set automatically by the search display controller when it is initialized. And when I create my UISearchDisplayController

Re: finding my UIViewController

2011-08-04 Thread Matt Neuburg
On Thu, 04 Aug 2011 00:07:40 +0800, Roland King r...@rols.org said: Is there any way to find, given a UIView, what the closest presenting UIViewController is? Walk the responder chain until you come to a UIViewController? UIResponder* r = self; while (![r isKindOfClass

finding my UIViewController

2011-08-03 Thread Roland King
was presented from a UIViewController subclass. I want the button press to pop up a modal UIImagePickerController which will eventually pick the image for the cell I'm in. To pop it up I need a UIViewController instance to pop it up from, and to pop it down again afterwards. Is there any way

UIViewController: not receiving motion events

2010-09-07 Thread Dave DeLong
Hi everyone, I've got a UIViewController subclass that controls a screen of content and a couple subviews. I'm trying to detect when the user shakes the device using UIResponder's motionEnded: method. In a nutshell, nothing that I do ever causes this method to be triggered. I've tried

Re: UIViewController: not receiving motion events

2010-09-07 Thread Fritz Anderson
On 7 Sep 2010, at 2:11 PM, Dave DeLong wrote: None of these work, and my motionEnded: method never gets called. You say repeatedly that you are looking for the method -motionEnded:, period. There is no such method in the API. There is a -motionEnded:withEvent:. Did you try that? Going

Re: UIViewController: not receiving motion events

2010-09-07 Thread Dave DeLong
Yes, sorry. motionEnded: was shorthand for motionEnded:withEvent: I should've been clearer about that. I could've sworn I overrode canBecomeFirstResponder, but apparently I hadn't. Putting that in appears to have fixed it. Thanks, Dave On Sep 7, 2010, at 4:19 PM, Fritz Anderson wrote:

UIViewController and splash screen orientation issue on iPad

2010-08-25 Thread Eric Giguere
that can be resumed to this function: -(void)showSplash { UIViewController *modalViewController = [[UIViewController alloc] init]; modalViewController.view = modelView; [self presentModalViewController:modalViewController animated:NO]; [self performSelector:@selector

Re: UIViewController and splash screen orientation issue on iPad

2010-08-25 Thread Kyle Sluder
On Aug 25, 2010, at 7:57 AM, Eric Giguere eric.gigu...@videotron.ca wrote: Hi all I have a small problem here with a small application I'm writing for the iPad. First, I manually show a splash screen. Doing so instead of using the default.png behavior allows controlling the time the

Re: UIViewController and splash screen orientation issue on iPad

2010-08-25 Thread Eric Giguere
Hi Kyle Sure am. Lets call it then the Launch image. We do need to show something if the application is establishing a remote connection. This screen I'm show as a modal view shows up upside down :( I've had that orientation issue with other applications when I'm programmatically creating

Re: UIViewController and splash screen orientation issue on iPad

2010-08-25 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/25/10 4:57 AM, Eric Giguere wrote: The problem is that when I start the application with the Pad upside down, the splash view does not get auto-rotated even though my main view behind it is always showing with the right orientation. I can't

Re: UIViewController and splash screen orientation issue on iPad

2010-08-25 Thread David Duncan
your view only supports Portrait orientation (because you didn't subclass UIViewController to do otherwise). You need to create a UIViewController subclass to do this that supports all orientations. Assuming your view doesn't require complex layout or image changes (i.e. supporting the portrait

Re: UIViewController and splash screen orientation issue on iPad

2010-08-25 Thread Eric Giguere
-rotated even though my main view behind it is always showing with the right orientation. Thats because the view controller managing your view only supports Portrait orientation (because you didn't subclass UIViewController to do otherwise). You need to create a UIViewController subclass to do

Re: UIViewController and splash screen orientation issue on iPad

2010-08-25 Thread David Duncan
On Aug 25, 2010, at 12:27 PM, Dikshith Rai wrote: You can also do this without creating a new view. Just put a sleep() in App delegate Please don't do this in shipping software. Depending on your sleep interval and the time it takes your application to startup, you could end up hitting one

Re: UIViewController and splash screen orientation issue on iPad

2010-08-25 Thread Dikshith Rai
Depending on your sleep interval and the time it takes your application to startup, you could end up hitting one of the watchdog timers and having your application get killed. Oh! Thanks for this information David :-) Regards, Dikshith On 26-Aug-2010, at 1:05 AM, David Duncan wrote:

Re: UIView as opposed to UIViewController...

2010-03-07 Thread Alexander Spohr
subView inside the viewController? (the subview bounds are as big as the whole view) NSTimer? What? Why? Please explain what you want to do. etc I guess i am not sure which way to go.. (do everything in a UIView subclass, or do everything in a UIViewController subclass.) Usually

Re: UIView as opposed to UIViewController...

2010-03-07 Thread Matt Neuburg
On Sat, 06 Mar 2010 19:57:32 -0700, Jon trambl...@mac.com said: I get indications from reading that you shouldn't really subclass UIView in general or to do routine things, and that any time you implement drawRect in the subclass of a UIView, you are taking a performance hit compared to doing

Re: UIView as opposed to UIViewController...

2010-03-07 Thread David Duncan
You've misread. The performance note is that if your view does not need to draw, then you should not implement -drawRect:. A view with an empty -drawRect: method consumes more memory and requires more processing time to display than the same view that does not implement - drawRect: at all.

UIView as opposed to UIViewController...

2010-03-06 Thread Jon
to go.. (do everything in a UIView subclass, or do everything in a UIViewController subclass.) it doesn't seem like anything you do in the controller, is easy to get to draw in a UIView subclass, and maybe equally hard to get stuff to translate over to the controller if you do a lot of work

Overriding -[UIViewController loadView], and loading from a nib

2009-11-03 Thread Jonathan del Strother
Heya, I'd like to get hold of the top level objects returned by -[NSBundle loadNibNamed:owner:options:] when UIViewController loads my view. Sadly UIViewController doesn't seem to provide any way of accessing these, so I thought I might be able to just load the nib myself : -(void)loadView

Re: Overriding -[UIViewController loadView], and loading from a nib

2009-11-03 Thread Jonathan del Strother
2009/11/3 Jonathan del Strother maill...@steelskies.com: Heya, I'd like to get hold of the top level objects returned by -[NSBundle loadNibNamed:owner:options:] when UIViewController loads my view. Sadly UIViewController doesn't seem to provide any way of accessing these, so I thought I

Re: Overriding -[UIViewController loadView], and loading from a nib

2009-11-03 Thread Luke the Hiesterman
hold of the top level objects returned by -[NSBundle loadNibNamed:owner:options:] when UIViewController loads my view. Sadly UIViewController doesn't seem to provide any way of accessing these, so I thought I might be able to just load the nib myself : -(void)loadView { NSArray

Re: Overriding -[UIViewController loadView], and loading from a nib

2009-11-03 Thread Jonathan del Strother
, 2009, at 5:27 AM, Jonathan del Strother wrote: 2009/11/3 Jonathan del Strother maill...@steelskies.com: Heya, I'd like to get hold of the top level objects returned by -[NSBundle loadNibNamed:owner:options:] when UIViewController loads my view. Sadly UIViewController doesn't seem to provide

Re: Overriding -[UIViewController loadView], and loading from a nib

2009-11-03 Thread Luke the Hiesterman
by - [NSBundle loadNibNamed:owner:options:] when UIViewController loads my view. Sadly UIViewController doesn't seem to provide any way of accessing these, so I thought I might be able to just load the nib myself : -(void)loadView { NSArray* topLevelObjects = [self.nibBundle

UIViewController Receive Shake Event?

2009-10-12 Thread Anthony Smith
Is it possible to have the UIViewController receive shake events in the 3.x API? I saw that UIViewController subclasses UIResponder so I thought I'd ask. I wrote some code but wasn't able to make it work. Thought there might be some quirk. Currently I'm implementing a solution

Re: UIViewController memory warnings | didReceiveMemoryWarning | setView | releasing outlets | releasing properties

2008-11-29 Thread Ashley Clark
/release/autorelease, the same as NSInteger, NSUInteger, BOOL and CGFloat self.labelA = [[UILabel alloc] initWithFrame:rectA]; Then you created another object here. // Method setView: // Overrides setter for UIViewController property view. - (void)setView:(UIView *)theView

RE: UIViewController memory warnings | didReceiveMemoryWarning |

2008-11-29 Thread Glenn Bloom
UIViewController memory warnings on the iPhone, I've found various useful threads online, and in particular, was very glad to follow the numerous recent posts in this forum with the subject 'Outlets / IBOutlet declarations'. In response, I've written a test app to confirm what I think I understand

Re: UIViewController memory warnings | didReceiveMemoryWarning | setView | releasing outlets | releasing properties

2008-11-29 Thread Ashley Clark
and pasting though. As I understand it, all instances of UIViewController will receive the didReceiveMemoryWarning message when the OS warns the app. At that point you should clear out any caches. Since they all receive this message, even if they're visible, you can't know at that point

UIViewController memory warnings | didReceiveMemoryWarning | setView | releasing outlets | releasing properties

2008-11-28 Thread Glenn Bloom
In the course of trying to understand UIViewController memory warnings on the iPhone, I've found various useful threads online, and in particular, was very glad to follow the numerous recent posts in this forum with the subject 'Outlets / IBOutlet declarations'. In response, I've written a test

overt and covert retain-release question (instigated by UIViewController on iPhone)

2008-11-12 Thread Stuart Malin
have the book) troubles me. This example piques for me several questions regarding proper coding regarding retain-release, as well as a curious question regarding KVO. In the code, Sadun subclasses the UIViewController class, and in its - loadView method, has the following (partial code

Re: overt and covert retain-release question (instigated by UIViewController on iPhone)

2008-11-12 Thread Luke the Hiesterman
regarding KVO. In the code, Sadun subclasses the UIViewController class, and in its -loadView method, has the following (partial code): - (void) loadVew { contentView = [[UIImageView alloc] initWithFrame]; ... self.view = contentView; [contentView release

Re: overt and covert retain-release question (instigated by UIViewController on iPhone)

2008-11-12 Thread mmalcolm crawford
On Nov 12, 2008, at 10:00 AM, Stuart Malin wrote: - (void) loadVew { contentView = [[UIImageView alloc] initWithFrame]; ... self.view = contentView; [contentView release]; ... } *If* this is exactly the code shown, and contentView is an instance

Re: overt and covert retain-release question (instigated by UIViewController on iPhone)

2008-11-12 Thread Peter N Lewis
is allocated, and has a retain count of 1 self.view = contentView; contentView is retained (2) and stored in the _view ivar [contentView release]; contentView is released (retain count of 1) to balance the [UIImageView alloc]. In the dealloc method of UIViewController, it will do

Can/should UIViewController work with multiple views?

2008-06-26 Thread Aleksandar Vacić
- if there is nothing to show, display such view, otherwise show TableView with existing data. I have UINavigationController which loads UIViewController which by default loads the table view. Q is: Where to add the loading of that no-data-yet view? At first, I created new ViewController and .xib file

Re: Can/should UIViewController work with multiple views?

2008-06-26 Thread Hamish Allan
On Thu, Jun 26, 2008 at 11:44 AM, Aleksandar Vacić [EMAIL PROTECTED] wrote: In the iPhone Simulator, when you load Photos app, iPhone simulator? I have heard tell of such a thing... but Photos app? I'd imagine anyone with direct experience of anything like that would be under NDA and

[MODERATOR] Re: Can/should UIViewController work with multiple views?

2008-06-26 Thread Scott Anguish
On Jun 26, 2008, at 6:44 AM, Aleksandar Vacić wrote: I'm new to Cocoa and try to learn what are the good ways of developing. One thing I'm doubtful is this... In the iPhone Simulator, when you load Photos app, it's initially empty and displays an image + helpful message. In the app