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
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
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)
>>
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
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
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
tionForCurrentState] + 444
2 UIKit 0x2a107a0b -[UIViewController
_presentViewController:presentationController:animationController:interactionController:completion:]
+ 822
3 UIKit 0x2a10899f -[UIViewController
_presentViewController:withAnimationCont
m.apple.main-thread
> 0 libobjc.A.dylib0x34043f46 objc_msgSend + 5
> 1 UIKit 0x2a0f2739 -[UIPresentationController
> runTransitionForCurrentState] + 444
> 2 UIKit 0x2a107a0b -[UIViewController
> _presentViewContr
entationController
runTransitionForCurrentState] + 444
2 UIKit 0x2a107a0b -[UIViewController
_presentViewController:presentationController:animationController:interactionController:completion:]
+ 822
3 UIKit 0x2a10899f
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
ngsViewController *c = [[GlobalSettingsViewController
alloc] initWithGroupDataSource:self.dataSource];
navigationController = [[UINavigationController alloc]
initWithRootViewController:c];
UIViewController *vc = UIApplication sharedApplication]
delegate] window] rootViewController];
[vc presentViewController:
, Herman Chan wrote:
>>
>>> GlobalSettingsViewController *c = [[GlobalSettingsViewController alloc]
>>> initWithGroupDataSource:self.dataSource];
>>> navigationController = [[UINavigationController alloc]
>>> initWithRootViewController:c];
>>>
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
On 22 Sep 2014, at 6:36 pm, Herman Chan wrote:
> GlobalSettingsViewController *c = [[GlobalSettingsViewController alloc]
> initWithGroupDataSource:self.dataSource];
> navigationController = [[UINavigationController alloc]
> initWithRootViewController:c];
> UIVie
-[UIPresentationController
runTransitionForCurrentState] + 444
2 UIKit 0x2a107a0b -[UIViewController
_presentViewController:presentationController:animationController:interactionController:completion:]
+ 822
3 UIKit 0x2a10899f -[UIViewController
> 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
ance transitions for <...>" on the console.
>
> - (void) showController:(UIViewController*)newC
> withView:(UIView*)contentView animated:(BOOL)animated
> {
>
> [contentView addSubview:newC.view];
>
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
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
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
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
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
> ___
>>
>> 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
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
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
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
/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
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
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
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
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
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
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
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
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
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,
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
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
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 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
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 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
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
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:
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
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
> 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:
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
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).
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 (
-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
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
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
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
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
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
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
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.
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
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
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
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:
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
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
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
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
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
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
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
= 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/
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
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
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
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
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
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
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
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
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
79 matches
Mail list logo