|
Re: Very short-lived Permissions in iOS
I have a strong suspicion that this is (again) a case of programmer (=me) error.
Probably the object asking for authorisation did not live long enough.
Sorry for the noise.
I have a strong suspicion that this is (again) a case of programmer (=me) error.
Probably the object asking for authorisation did not live long enough.
Sorry for the noise.
|
By
Gerriet M. Denkmann
·
#796
·
|
|
Re: Very short-lived Permissions in iOS
You can create another window and then display the auth request. When the auth is accepted or denied, dispose of the other window.
You can create another window and then display the auth request. When the auth is accepted or denied, dispose of the other window.
|
By
Alex Zavatone
·
#795
·
|
|
Very short-lived Permissions in iOS
iOS 12; Xcode 10.
User clicks on a button.
2018-09-28 12:14:59.376384+0700 CLAuthorizationStatus: Not Determined
2018-09-28 12:14:59.377407+0700 asking for permission...
2018-09-28
iOS 12; Xcode 10.
User clicks on a button.
2018-09-28 12:14:59.376384+0700 CLAuthorizationStatus: Not Determined
2018-09-28 12:14:59.377407+0700 asking for permission...
2018-09-28
|
By
Gerriet M. Denkmann
·
#794
·
|
|
Re: Mail Icon for iOS
This is a very helpful list indeed. Thanks a lot.
Well, I was thinking of the AppIcon of Mail.app. On macOS I could do:
[NSRunningApplication runningApplicationsWithBundleIdentifier:
This is a very helpful list indeed. Thanks a lot.
Well, I was thinking of the AppIcon of Mail.app. On macOS I could do:
[NSRunningApplication runningApplicationsWithBundleIdentifier:
|
By
Gerriet M. Denkmann
·
#793
·
|
|
Re: Mail Icon for iOS
This should help.
https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/system-icons/
See if your desired icon is there.
There also is a font that is all icons that is
This should help.
https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/system-icons/
See if your desired icon is there.
There also is a font that is all icons that is
|
By
Alex Zavatone
·
#792
·
|
|
resizeWithOldSuperviewSize not getting called on added Subview
Hi,
I’m using Manual Layout on a Mac project. The View Hierarchy is built in Interface Builder and during run time I add a subview to one of the views. However, resizeWithOldSuperviewSize is not
Hi,
I’m using Manual Layout on a Mac project. The View Hierarchy is built in Interface Builder and during run time I add a subview to one of the views. However, resizeWithOldSuperviewSize is not
|
By
Dave
·
#791
·
|
|
Re: Word detection without separating spaces
Yes, thanks! I have been playing with NSSpellChecker but haven’t been able to configure it with the magic sauce to get it to tokenize the way I am describing.
Sandor
Yes, thanks! I have been playing with NSSpellChecker but haven’t been able to configure it with the magic sauce to get it to tokenize the way I am describing.
Sandor
|
By
Sandor Szatmari
·
#790
·
|
|
Re: Word detection without separating spaces
Some quick googlage suggests that UITextChecker (iOS) and NSSpellChecker (Mac OS) might fit the bill...?
-ben
Some quick googlage suggests that UITextChecker (iOS) and NSSpellChecker (Mac OS) might fit the bill...?
-ben
|
By
Ben Kennedy
·
#789
·
|
|
Word detection without separating spaces
You know how apple apps can turn ‘itwas’ into ‘it was’ as your typing in a text field? Is there an API for this? I’d like to be able to take something like AREALLYLONGSTRING and turn it
You know how apple apps can turn ‘itwas’ into ‘it was’ as your typing in a text field? Is there an API for this? I’d like to be able to take something like AREALLYLONGSTRING and turn it
|
By
Sandor Szatmari
·
#788
·
|
|
Mail Icon for iOS
I have a UIButton “Send Mail”. Looks ok, but kind of plain.
Other apps (like Photos) have a beautiful blue Mail icon.
Is there a way to use this?
Gerriet.
I have a UIButton “Send Mail”. Looks ok, but kind of plain.
Other apps (like Photos) have a beautiful blue Mail icon.
Is there a way to use this?
Gerriet.
|
By
Gerriet M. Denkmann
·
#787
·
|
|
Re: Mystery Buttons in UITableViews
No ghosts, no gremlins.
Looking at the table views again (after a good night’s sleep), I finally discovered that the prototype cell for the row with the button did *not* have:
Interaction ✔️
No ghosts, no gremlins.
Looking at the table views again (after a good night’s sleep), I finally discovered that the prototype cell for the row with the button did *not* have:
Interaction ✔️
|
By
Gerriet M. Denkmann
·
#786
·
|
|
Re: Mystery Buttons in UITableViews
Did you prepare the cells for reuse?
Run the app in the simulator and enable the highlight for the views. I’ll bet that as soon as you scroll the table view, some cells are getting ghost buttons
Did you prepare the cells for reuse?
Run the app in the simulator and enable the highlight for the views. I’ll bet that as soon as you scroll the table view, some cells are getting ghost buttons
|
By
Alex Zavatone
·
#785
·
|
|
Mystery Buttons in UITableViews
iOS 12, Xcode 10.
I have two subclasses of UITableViewController, and the tableView of each has a row with a UIButton.
Both subclasses look absolutely identical (I have checked this in Xcode at least
iOS 12, Xcode 10.
I have two subclasses of UITableViewController, and the tableView of each has a row with a UIButton.
Both subclasses look absolutely identical (I have checked this in Xcode at least
|
By
Gerriet M. Denkmann
·
#784
·
|
|
Re: NSMeasurementFormatter reversed
On 9/26/18 5:12 PM, Quincey Morris wrote:
The first of those 3 methods does not use a private API. But you could say that an undocumented default could break in the future.
On 9/26/18 5:12 PM, Quincey Morris wrote:
The first of those 3 methods does not use a private API. But you could say that an undocumented default could break in the future.
|
By
James Walker
·
#783
·
|
|
Re: NSMeasurementFormatter reversed
Be careful with this. If you look at some of the Stack Overflow posts about this, it seems to be regarded as private API, and a cause for rejection by App Review.
I think the real answer is that
Be careful with this. If you look at some of the Stack Overflow posts about this, it seems to be regarded as private API, and a cause for rejection by App Review.
I think the real answer is that
|
By
Quincey Morris
·
#782
·
|
|
Re: UITableViewCell with UITextField
Yeah, that’s what I meant by making the class of the XIB to be your class and making the identifier your identifier. Granted, I probably wasn’t super clear at that time of the morning. That
Yeah, that’s what I meant by making the class of the XIB to be your class and making the identifier your identifier. Granted, I probably wasn’t super clear at that time of the morning. That
|
By
Alex Zavatone
·
#781
·
|
|
Re: How to Correctly Resize Views with Manual Layout
HI,
Just a quick message to say I’ve now got it working well using resizeWithOldSuperviewSize.
Wanted to say thanks to everyone that helped.
All the Best
Dave
HI,
Just a quick message to say I’ve now got it working well using resizeWithOldSuperviewSize.
Wanted to say thanks to everyone that helped.
All the Best
Dave
|
By
Dave
·
#780
·
|
|
Re: NSMeasurementFormatter reversed
Excellent find! Thanks a lot!
There seem to be 3 ways to get this info:
NSString *temp1 = [NSUserDefaults.standardUserDefaults stringForKey: @"AppleTemperatureUnit"];
NSString *temp2 = [
Excellent find! Thanks a lot!
There seem to be 3 ways to get this info:
NSString *temp1 = [NSUserDefaults.standardUserDefaults stringForKey: @"AppleTemperatureUnit"];
NSString *temp2 = [
|
By
Gerriet M. Denkmann
·
#779
·
|
|
Re: How to Correctly Resize Views with Manual Layout
Hi,
Ok, yes, that was a typo, I released it needed to be after I posted, I was about to post that I’ve I’ve actually concocted a test app got it working using the bounds rect as a base.
One
Hi,
Ok, yes, that was a typo, I released it needed to be after I posted, I was about to post that I’ve I’ve actually concocted a test app got it working using the bounds rect as a base.
One
|
By
Dave
·
#778
·
|
|
Re: How to Correctly Resize Views with Manual Layout
Two quick comments:
- You want to set the subview's frame relative to the superview's bounds, not its frame.
- You might want to experiment with a scratch app before making a lot of code changes at
Two quick comments:
- You want to set the subview's frame relative to the superview's bounds, not its frame.
- You might want to experiment with a scratch app before making a lot of code changes at
|
By
Andy Lee
·
#777
·
|