Re: Custom UIViewController transitions with segues

2015-12-31 Thread Rick Mann
h 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 am I missing? >>>>> >>>>> TIA, >>>> >>>> My thought here i

Re: Custom UIViewController transitions with segues

2015-12-30 Thread Sixten Otto
ues, which is not > really what I want. > >>> > >>> Is 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 th

Re: Custom UIViewController transitions with segues

2015-12-30 Thread Rick Mann
ns up only custom segues, which is not >>> really what I want. >>> >>> Is it even possible to do this with segues? What am I missing? >>> >>> TIA, >> >> My thought here is that push != present, ie pushViewController(_:animated) >>

Re: Custom UIViewController transitions with segues

2015-12-30 Thread Rick Mann
th 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 modes call the latter. I dunno what I’d

Re: Custom UIViewController transitions with segues

2015-12-30 Thread Roland King
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 as helpful as I

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 deleg

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

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

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

2014-09-23 Thread David Duncan
m.apple.main-thread > 0 libobjc.A.dylib0x34043f46 objc_msgSend + 5 > 1 UIKit 0x2a0f2739 -[UIPresentationController > runTransitionForCurrentState] + 444 > 2 UIKit 0x2a107a0b -[UIViewController > _presentViewContr

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

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

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

2014-09-23 Thread David Duncan
you will fix this issue too. >> >>> >>> I am seeing crash logs from both instance of presenting view controllers >>> (both from rootVC and not), so that's probably not the issue here. >>> >>> Herman >>> >>> On 22 Sep 201

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

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

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

2014-09-23 Thread David Duncan
, Herman Chan wrote: >> >>> GlobalSettingsViewController *c = [[GlobalSettingsViewController alloc] >>> initWithGroupDataSource:self.dataSource]; >>> navigationController = [[UINavigationController alloc] >>> initWithRootViewController:c]; >>>

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

2014-09-22 Thread Herman Chan
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 rea

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 wrote: > GlobalSettingsViewController *c = [[GlobalSettingsViewController alloc] > initWithGroupDataSource:self.dataSource]; > navigationController = [[UINavigationController alloc] > initWithRootViewController:c]; > UIVie

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: 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 (Cocoa-dev@lis

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

2014-04-24 Thread Sebastian Celis
ance transitions for <...>" on the console. > > - (void) showController:(UIViewController*)newC > withView:(UIView*)contentView animated:(BOOL)animated > { > > [contentView addSubview:newC.view]; >

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:(UIView

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 wrote: > iPad 2 (non-retina), iOS 7.0.2, Xcode 5.0 > > I have a UIViewController that I'm setting th

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

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 wrote: > I second Matt's approach. To emulate the look of Apple Stocks, use a > single UIViewController that contains a UITableView in

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 maskin

Re: UIViewController question

2013-03-23 Thread Rick Aurbach
> ___ >> >> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) >> > From: dangerwillrobinsondan...@gmail.com > To: Koen van der Drift > Cc: "cocoa-dev@lists.apple.com Dev" > Subject: Re: UIViewController que

Re: UIViewController question

2013-03-23 Thread Matt Neuburg
On Fri, 22 Mar 2013 22:02:04 -0400, Koen van der Drift 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 design the view-controll

Re: UIViewController question

2013-03-23 Thread dangerwillrobinsondanger
Master-Detail pattern. Select an item in the table view. Detail view loads detail. In this case detail view has 3 swipeable pages that loop. Sounds like you could do it with one or two or more. Up to you. Really just swapping out data, views themselves aren't necessarily different as data c

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 fo

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

RE: uiviewcontroller

2012-04-19 Thread Julius Oklamcak
rce 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 moderat

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 containment and storyboarding

2011-11-10 Thread Matt Neuburg
On Sat, 05 Nov 2011 21:48:42 +0800, Roland King 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 cus

UIViewController containment and storyboarding

2011-11-05 Thread Roland King
Is there any support for UIViewController containment with storyboarding? I've been trying to implement a custom segue between two view controllers which really requires having both of them available and performing animations on both the outgoing and incoming view controller, fading most o

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 wrote: > On Thu, Nov 3, 2011 at 12:40 PM, Eric E. Dolecki wrote: >> Then in my code: >> >> UIStoryboard *storyboard = [UIStoryboard storyboardWithName: >> @"MainStoryboard" bundle:[NSBundle mainBundle]]; >> HomeUIVie

Re: Storyboard scene and UIViewController

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

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 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 assig

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 co

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 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,

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

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 sce

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: Why doesn't UIViewController retain its UISearchDisplayController

2011-10-07 Thread Matt Neuburg
On Thu, 06 Oct 2011 14:33:15 -0500, Heath Borders 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 con

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 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: [UIViewController

finding my UIViewController

2011-08-03 Thread Roland King
View which 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 t

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:

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 throug

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 trigger

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: 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 Eric Giguere
does not get auto-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).

Re: UIViewController and splash screen orientation issue on iPad

2010-08-25 Thread David Duncan
ontroller 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 this that supports all orientations. Assuming your view doesn't require complex layout or image changes (

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 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 contr

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 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 spash is shown on > scr

UIViewController and splash screen orientation issue on iPad

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

Re: iPad UIViewController craziness

2010-05-10 Thread Rafael Cerioli
If you can't see the view, I'd say that the NIB file might not be loaded properly. You should check if your current target points toward the info.plist file you expect (project, edit active target, build tab, check Info.plist file), and then check that your info.plist mentions the right NIB (ke

Re: iPad UIViewController craziness

2010-05-10 Thread Luke the Hiesterman
For problems like this, you should post a sample project. Otherwise, it's just a guessing game as to what might be missing. Luke On May 10, 2010, at 1:10 PM, banane wrote: > I'm porting an iPhone app to the iPad, and am having issues getting my > view to appear. I have a sample app I've created

iPad UIViewController craziness

2010-05-10 Thread banane
I'm porting an iPhone app to the iPad, and am having issues getting my view to appear. I have a sample app I've created, and done nothing to (except change background color). BTW I can do this many different ways in iPhone, it's just issues in the iPad I'm having. I brought the XIB and Classes fro

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.

Re: UIView as opposed to UIViewController...

2010-03-07 Thread Matt Neuburg
On Sat, 06 Mar 2010 19:57:32 -0700, Jon 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 some drawing in ot

Re: UIView as opposed to UIViewController...

2010-03-07 Thread Alexander Spohr
within an NStimer loop in this added 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

UIView as opposed to UIViewController...

2010-03-06 Thread Jon
ay 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

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

2009-11-03 Thread Luke the Hiesterman
le 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 loadNibNamed:

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

2009-11-03 Thread Jonathan del Strother
h the nib. > > Luke > > On Nov 3, 2009, at 5:27 AM, Jonathan del Strother wrote: > >> 2009/11/3 Jonathan del Strother : >>> >>> Heya, >>> >>> I'd like to get hold of the top level objects returned by -[NSBundle >>> loadNibNamed:ow

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

2009-11-03 Thread Luke the Hiesterman
old 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* topLevel

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

2009-11-03 Thread Jonathan del Strother
2009/11/3 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 tho

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 : -(voi

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

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

2008-11-29 Thread Ashley Clark
equivalent but I think it's just remnants of some copy 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

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

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

2008-11-29 Thread Ashley Clark
= labelTemp;// instance variable - will be released in dealloc [labelTemp release]; The first one was created in that stanza. CGRect rectA = CGRectMake(0,0, 320,50);// CGRect is a scalar structure that's local to the scope it's defined in. It has no concept of retain/

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

2008-11-28 Thread Ashley Clark
On Nov 28, 2008, at 11:44 PM, Glenn Bloom wrote: 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 &#x

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&#x

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

2008-11-12 Thread Peter N Lewis
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

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 Luke the Hiesterman
ease, 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): - (void) loadVew { contentView = [[UIImageView alloc] initWithFrame]; ... self.view = conten

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

2008-11-12 Thread Stuart Malin
ot; example (listing 1-4, if you 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, h

[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 I'm

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 t

Can/should UIViewController work with multiple views?

2008-06-26 Thread Aleksandar Vacić
thing - 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 ViewCont