iOS Status Bar and Modal Presentation

2016-07-04 Thread Luther Baker
I am "presenting" a view controller (*modaly*) on an iPhone and I'd like to hide the status bar while the *modal* view controller is visible. I've implemented prefersStatusBarHidden on the presented view controller and indeed, the status bar is hidden when the modal view controller is presented - b

Re: Supreme aggravation with UITextField controls and the #@Q% return button

2016-07-04 Thread Luther Baker
I think you're using the wrong method ... textFieldDoneEditing fires when a control loses focus, not when the "return" key gets tapped. Try implementing optional func textFieldShouldReturn(_ *textField*: UITextField

Supreme aggravation with UITextField controls and the #@Q% return button

2016-07-04 Thread William Squires
When making any iOS application project (Xcode 7.something, on 10.11.5, base SDK = iOS 9) that uses a UITextField control, I can't get the "return" button to work. I've tried attaching an IBAction by Ctrl-dragging from the control to the .swift file for the view controller, naming the action, a

Re: NSStream and Threads

2016-07-04 Thread Charles Srstka
> On Jul 4, 2016, at 1:34 AM, Gerriet M. Denkmann wrote: > > Well, seems like the main thread? There’s your problem. Charles ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: NSStream and Threads

2016-07-04 Thread Roland King
> On 4 Jul 2016, at 14:34, Gerriet M. Denkmann wrote: > > >> On 4 Jul 2016, at 12:00, Charles Srstka wrote: >> >>> On Jul 3, 2016, at 11:35 PM, Gerriet M. Denkmann >>> wrote: >>> >>> When I get an NSStream I do: >>> >>> aStream.delegate = myStreamDelegate; >>> [ aStream scheduleInRunLoop: