|
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
·
|
|
Re: NSMeasurementFormatter reversed
Typing
defaults find Temperature
at the command line produces
Found 1 keys in domain 'Apple Global Domain': {
AppleTemperatureUnit = Fahrenheit;
}
I’m not sure if you can get that with
Typing
defaults find Temperature
at the command line produces
Found 1 keys in domain 'Apple Global Domain': {
AppleTemperatureUnit = Fahrenheit;
}
I’m not sure if you can get that with
|
By
James Walker
·
#776
·
|
|
Re: UITableViewCell with UITextField
I found a solution without an extra xib file: just using a Prototype Cell in the tableView.
Class: MyTableViewCell
Style: Custom
Identifier: “Cell with TextField”
The Prototype Cell has
I found a solution without an extra xib file: just using a Prototype Cell in the tableView.
Class: MyTableViewCell
Style: Custom
Identifier: “Cell with TextField”
The Prototype Cell has
|
By
Gerriet M. Denkmann
·
#775
·
|
|
Re: UITableViewCell with UITextField
Try adding nonatomic and strong to your property.
@property (nonatomic, strong) IBOutlet UITextField *textField;
Also, did you set the XIB in the storyboard to your subclass and drag the UITextField
Try adding nonatomic and strong to your property.
@property (nonatomic, strong) IBOutlet UITextField *textField;
Also, did you set the XIB in the storyboard to your subclass and drag the UITextField
|
By
Alex Zavatone
·
#774
·
|
|
How to Correctly Resize Views with Manual Layout
Hi All,
I’ve started move over to using the correct Manual Layout Methods as per my recent posts. The methods are:
resizeWithOldSuperviewSize
WindowTrackerView .view Property
SubviewA
All
Hi All,
I’ve started move over to using the correct Manual Layout Methods as per my recent posts. The methods are:
resizeWithOldSuperviewSize
WindowTrackerView .view Property
SubviewA
All
|
By
Dave
·
#773
·
|
|
Re: UITableViewCell with UITextField
@interface TextTableCell : UITableViewCell
@property IBOutlet UITextField *textField;
@end
TableCellView.xib
File’s Owner = TextTableCell
Outlet textField = UITextField
View UIView contains
@interface TextTableCell : UITableViewCell
@property IBOutlet UITextField *textField;
@end
TableCellView.xib
File’s Owner = TextTableCell
Outlet textField = UITextField
View UIView contains
|
By
Gerriet M. Denkmann
·
#772
·
|
|
Re: UITableViewCell with UITextField
Use an XIB for the subclass of tableViewCell, create a UIOutlet property for the UITextField, assign the subclass to the XIB’s class and wire up the UIOutlet property to the UITextField. Don’t
Use an XIB for the subclass of tableViewCell, create a UIOutlet property for the UITextField, assign the subclass to the XIB’s class and wire up the UIOutlet property to the UITextField. Don’t
|
By
Alex Zavatone
·
#771
·
|
|
UITableViewCell with UITextField
iOS 12, Xcode 10
I have a subclass of UITableViewController.
The UITableView should use UITableViewCells with UITextFields (for data entry).
So I created MyTableViewCellWithTextField which has:
iOS 12, Xcode 10
I have a subclass of UITableViewController.
The UITableView should use UITableViewCells with UITextFields (for data entry).
So I created MyTableViewCellWithTextField which has:
|
By
Gerriet M. Denkmann
·
#770
·
|
|
NSMeasurementFormatter reversed
NSMeasurementFormatter is a magical tool which converts all stuff just into the right form the user wants to see.
But what about the other way round?
I have a TextField labeled “Desired
NSMeasurementFormatter is a magical tool which converts all stuff just into the right form the user wants to see.
But what about the other way round?
I have a TextField labeled “Desired
|
By
Gerriet M. Denkmann
·
#769
·
|
|
Re: Temperatur etc. from Locale
Excellent. Just what I needed.
Contrary to my expectations Celsius/Fahrenheit is *not* part of Locale, but set in System Preferences → Language & Region → Temperature.
I can’t find “rounds
Excellent. Just what I needed.
Contrary to my expectations Celsius/Fahrenheit is *not* part of Locale, but set in System Preferences → Language & Region → Temperature.
I can’t find “rounds
|
By
Gerriet M. Denkmann
·
#768
·
|
|
Re: Temperatur etc. from Locale
I haven't played with it myself, but maybe NSMeasurementFormatter?
--Andy
I haven't played with it myself, but maybe NSMeasurementFormatter?
--Andy
|
By
Andy Lee
·
#767
·
|
|
Temperatur etc. from Locale
I want to know, given a certain NSLocale (e.g. NSLocale.currentLocale), how to represent:
Temperature (K, °C or whatever)
Distance (km, miles, furlongs, lightyears, … )
Speed (m/sec, km/h,
I want to know, given a certain NSLocale (e.g. NSLocale.currentLocale), how to represent:
Temperature (K, °C or whatever)
Distance (km, miles, furlongs, lightyears, … )
Speed (m/sec, km/h,
|
By
Gerriet M. Denkmann
·
#766
·
|
|
Re: More Layout Questions
Hi,
It’s not so much it can’t handle it, its that it takes way to long to do the design in Xcode/Interface Builder and what I am doing is not that difficult but there is a lot of it. Also their
Hi,
It’s not so much it can’t handle it, its that it takes way to long to do the design in Xcode/Interface Builder and what I am doing is not that difficult but there is a lot of it. Also their
|
By
Dave
·
#765
·
|