|
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
·
|
|
Re: More Layout Questions
HI,
Thanks for this, I did something like this a long while back and must have confused the “Display” path with the “Layout” path, thanks for putting me on the right track again. The its
HI,
Thanks for this, I did something like this a long while back and must have confused the “Display” path with the “Layout” path, thanks for putting me on the right track again. The its
|
By
Dave
·
#764
·
|
|
Re: Refactoring existing Core Data entity classes?
That should be reasonable, I don’t recall whether you’ll need to create a mapping model or not to actually migrate the existing store.
It does mean that all of the instances will wind up shoved
That should be reasonable, I don’t recall whether you’ll need to create a mapping model or not to actually migrate the existing store.
It does mean that all of the instances will wind up shoved
|
By
Chris Hanson
·
#763
·
|
|
Re: Refactoring existing Core Data entity classes?
So, a little background. The model on the server has a number of types that inherit from a common class that contains a number of common properties. The original authors of the iOS app created a bunch
So, a little background. The model on the server has a number of types that inherit from a common class that contains a number of common properties. The original authors of the iOS app created a bunch
|
By
Steve Christensen
·
#762
·
|
|
Re: Refactoring existing Core Data entity classes?
If you put the entities themselves in an inheritance relationship, Xcode will generate code reflecting that.
I would only do this for “strongly” related entities though since entity inheritance
If you put the entities themselves in an inheritance relationship, Xcode will generate code reflecting that.
I would only do this for “strongly” related entities though since entity inheritance
|
By
Chris Hanson
·
#761
·
|