Re: Interacting with VC behind modal VC?

2016-05-11 Thread Rick Mann
> On May 11, 2016, at 17:49 , Alex Zavatone wrote: > > Does the top view cover/obscure the view beneath it? In this case, the top (modal) view obscures only a small part of the view beneath it. You can see a chrome dimming view fade in and out if you drag the modal view down slowly (in the Yo

Re: Interacting with VC behind modal VC?

2016-05-11 Thread Alex Zavatone
Does the top view cover/obscure the view beneath it? You can do this with an override on hitTest: withEvent:. https://developer.apple.com/library/ios/documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/event_delivery_responder_chain/event_delivery_responder_chain.html http://stackoverfl

Interacting with VC behind modal VC?

2016-05-11 Thread Rick Mann
In both the YouTube and Vimeo players (at least on iPad), the user can tap on something that looks like a collection view cell. Doing so then appears to modally present a view for that video. A button in the upper-left then results in that video shrinking down to a small thumbnail in the lower-

Re: objc [66375] class Foo is implemented in both BundleA and BundleB

2016-05-11 Thread Jeff Szuhay
> On May 11, 2016, at 12:08 AM, Jens Alfke wrote: > > >> On May 10, 2016, at 11:05 PM, Jeff Szuhay > > wrote: >> >> Class Foo is a base class. It is subclassed in BundleA, BundleB, … BundleZ. > > Where is Foo itself implemented? If there are copies of the Foo class in

Re-presenting view controller changes size

2016-05-11 Thread Rick Mann
(Kyle, I think you're probably the one to answer this.) I've posted the question a couple times before, but haven't gotten a response. I have a bit more information now. I have a modal ViewController ("Details") that I present with custom presentation and animations (the presented VC is smaller

Re: Programmatically pinch a UIView

2016-05-11 Thread Carl Hoefs
> On May 11, 2016, at 2:33 PM, Quincey Morris > wrote: > > On May 11, 2016, at 14:14 , Carl Hoefs > wrote: >> >> the UIView that's currently there handles pinch zoom in/out fine. > > You should at this point explain what mechanism you’re using to do th

Re: Programmatically pinch a UIView

2016-05-11 Thread Quincey Morris
On May 11, 2016, at 14:14 , Carl Hoefs wrote: > > the UIView that's currently there handles pinch zoom in/out fine. You should at this point explain what mechanism you’re using to do this. > Is there a way to programmatically cause a 'pinch zoom out by 10%'? The result of applying a “pinch” ge

Re: presentationControllerForPresentedViewController(…) is called multiple times

2016-05-11 Thread Rick Mann
> On May 11, 2016, at 08:29 , Kyle Sluder wrote: > > Regardless of whether this is expected, I agree it’s inefficient. Please > file a bug report at https://bugreport.apple.com. Ah, it seems to be a false alarm. Inherited code was registering a listener three times, so the action that initiate

Re: Programmatically pinch a UIView

2016-05-11 Thread Carl Hoefs
> On May 11, 2016, at 2:08 PM, Quincey Morris > wrote: > > On May 11, 2016, at 13:56 , Carl Hoefs > wrote: >> >> I just tried UIScrollView & -setZoomScale:. No effect. > > I think you’re flailing now. ;) > >> I was hoping there was a way to initially p

Re: Programmatically pinch a UIView

2016-05-11 Thread Quincey Morris
On May 11, 2016, at 13:56 , Carl Hoefs wrote: > > I just tried UIScrollView & -setZoomScale:. No effect. I think you’re flailing now. ;) > I was hoping there was a way to initially programmatically pinch the view > down by 10%, so the view's frame isn't reduced as well You can’t make a view s

Re: Programmatically pinch a UIView

2016-05-11 Thread Carl Hoefs
> On May 11, 2016, at 1:51 PM, Carl Hoefs > wrote: > > On May 11, 2016, at 1:45 PM, Carl Hoefs > wrote: >> >>> On May 11, 2016, at 1:38 PM, David Duncan wrote: >>> On May 11, 2016, at 1:32 PM, Carl Hoefs wrote: In iOS 9.3, I have a UIView that displays a graph, and t

Re: Programmatically pinch a UIView

2016-05-11 Thread Carl Hoefs
On May 11, 2016, at 1:45 PM, Carl Hoefs wrote: > >> On May 11, 2016, at 1:38 PM, David Duncan wrote: >> >>> On May 11, 2016, at 1:32 PM, Carl Hoefs >>> wrote: >>> >>> In iOS 9.3, I have a UIView that displays a graph, and the view is >>> pinchable. That works fine but I want to programmatic

Re: Programmatically pinch a UIView

2016-05-11 Thread Carl Hoefs
> On May 11, 2016, at 1:38 PM, David Duncan wrote: > >> On May 11, 2016, at 1:32 PM, Carl Hoefs >> wrote: >> >> In iOS 9.3, I have a UIView that displays a graph, and the view is >> pinchable. That works fine but I want to programmatically pinch the UIView >> so the default display initiall

Re: Programmatically pinch a UIView

2016-05-11 Thread David Duncan
> On May 11, 2016, at 1:32 PM, Carl Hoefs > wrote: > > In iOS 9.3, I have a UIView that displays a graph, and the view is pinchable. > That works fine but I want to programmatically pinch the UIView so the > default display initially shows the graph a bit smaller. How can I do this? > Alterna

Programmatically pinch a UIView

2016-05-11 Thread Carl Hoefs
In iOS 9.3, I have a UIView that displays a graph, and the view is pinchable. That works fine but I want to programmatically pinch the UIView so the default display initially shows the graph a bit smaller. How can I do this? Alternately, I've tried setting self.view.contentScaleFactor but this p

Re: presentationControllerForPresentedViewController(…) is called multiple times

2016-05-11 Thread Kyle Sluder
On Tue, May 10, 2016, at 06:02 PM, Rick Mann wrote: > Currently, my code instantiates a new UIPresentationController subclass > each time presentationControllerForPresentedViewController(…) is called. > Unfortunately, when I present a VC, > presentationControllerForPresentedViewController(…) is cal

Re: Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior

2016-05-11 Thread Kyle Sluder
On Thu, Apr 28, 2016, at 05:03 PM, Rick Mann wrote: > I'm getting the following message in the console: > > Attempting to load the view of a view controller while it is > deallocating is not allowed and may result in undefined behavior > () > > Thing is, I get it when handling a universal

Re: UIImagePickerController in popover broken on iOS 9

2016-05-11 Thread Kyle Sluder
On Wed, May 4, 2016, at 01:34 PM, Matt Reagan wrote: > Hi all, > > I've encountered a bug when UIImagePickerController is presented in a > popover on iOS 9, and have been unable to find a workaround / fix. Please file a bug report at https://bugreport.apple.com. --Kyle > > It is easily reprodu

Re: Protecting against "app nap"

2016-05-11 Thread Jens Alfke
> On May 11, 2016, at 2:31 AM, Jonathan Taylor > wrote: > > I guess I just found method naming a bit odd (not really referring to an > object at all), and might have expected it to have an ‘alloc/new’ naming > since I’d have thought the API would be almost exclusively used for > activities t

Re: Protecting against "app nap"

2016-05-11 Thread Jonathan Taylor
Thankyou both for your replies - a couple of replies below: On 10 May 2016, at 23:33, Jens Alfke wrote: >> However, I was a bit surprised to find that I seem to need to explicitly >> retain the object I get back [this is non-ARC code…] if I want my request to >> remain in effect or even for the

Re: objc [66375] class Foo is implemented in both BundleA and BundleB

2016-05-11 Thread Jens Alfke
> On May 10, 2016, at 11:05 PM, Jeff Szuhay wrote: > > Class Foo is a base class. It is subclassed in BundleA, BundleB, … BundleZ. Where is Foo itself implemented? If there are copies of the Foo class in each bundle then yeah, you’ll get that warning. > Is there a better way to do it? I can’