; 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
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
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
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
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
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
= [[GlobalSettingsViewController alloc]
initWithGroupDataSource:self.dataSource];
navigationController = [[UINavigationController alloc]
initWithRootViewController:c];
UIViewController *vc = UIApplication sharedApplication] delegate]
window] rootViewController];
[vc
:
GlobalSettingsViewController *c = [[GlobalSettingsViewController
alloc] initWithGroupDataSource:self.dataSource];
navigationController = [[UINavigationController alloc]
initWithRootViewController:c];
UIViewController *vc = UIApplication sharedApplication]
delegate] window] rootViewController];
[vc
= [[GlobalSettingsViewController alloc]
initWithGroupDataSource:self.dataSource];
navigationController = [[UINavigationController alloc]
initWithRootViewController:c];
UIViewController *vc = UIApplication sharedApplication] delegate]
window] rootViewController];
[vc
runTransitionForCurrentState] + 444
2 UIKit 0x2a107a0b -[UIViewController
_presentViewController:presentationController:animationController:interactionController:completion:]
+ 822
3 UIKit 0x2a10899f -[UIViewController
objc_msgSend + 5
1 UIKit 0x2a0f2739 -[UIPresentationController
runTransitionForCurrentState] + 444
2 UIKit 0x2a107a0b -[UIViewController
_presentViewController:presentationController:animationController:interactionController:completion:]
+ 822
runTransitionForCurrentState] + 444
2 UIKit 0x2a107a0b -[UIViewController
_presentViewController:presentationController:animationController:interactionController:completion:]
+ 822
3 UIKit 0x2a10899f -[UIViewController
-[UIPresentationController
runTransitionForCurrentState] + 444
2 UIKit 0x2a107a0b -[UIViewController
_presentViewController:presentationController:animationController:interactionController:completion:]
+ 822
3 UIKit 0x2a10899f -[UIViewController
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
] 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
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
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
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
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
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
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
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
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
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
#//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
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
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
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
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
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
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
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
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
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
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];
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
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
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
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
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
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
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
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:
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
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
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
-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
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
-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
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
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:
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
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
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.
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
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
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
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
, 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
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
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
/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
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
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
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
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
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
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
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
- 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
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
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
72 matches
Mail list logo