|
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
·
|
|
Re: Refactoring existing Core Data entity classes?
Hi Chris,
Thanks, that’s good to know for the easy path. What about the case where I want to update the model to reflect the class hierarchy? Based on what the Common superclass will handle, I can
Hi Chris,
Thanks, that’s good to know for the easy path. What about the case where I want to update the model to reflect the class hierarchy? Based on what the Common superclass will handle, I can
|
By
Steve Christensen
·
#760
·
|
|
Re: Refactoring existing Core Data entity classes?
In fact you don’t even need a new model version, you can just refactor the code.
We made sure that Core Data’s concept of entity inheritance is independent of class hierarchy, so you don’t
In fact you don’t even need a new model version, you can just refactor the code.
We made sure that Core Data’s concept of entity inheritance is independent of class hierarchy, so you don’t
|
By
Chris Hanson
·
#759
·
|
|
Re: More Layout Questions
When you find a use case it doesn’t handle, consider the various container views available, and if those don’t help, definitely write a radar. Apple is always improving things, and if you report
When you find a use case it doesn’t handle, consider the various container views available, and if those don’t help, definitely write a radar. Apple is always improving things, and if you report
|
By
Gary L. Wade
·
#758
·
|
|
Re: More Layout Questions
This is incorrect: “layout” methods were added when autolayout was introduced in Lion (10.7). Before that, you used “frame” and “display” methods, and it was generally the responsibility
This is incorrect: “layout” methods were added when autolayout was introduced in Lion (10.7). Before that, you used “frame” and “display” methods, and it was generally the responsibility
|
By
Keary Suska
·
#757
·
|
|
Re: More Layout Questions
Hi,
I’m confused then! The “layout” method has been around a lot longer than Auto Layout and it worked in conjunction with the Auto-Resizing options (defined in the Size Pane in IB). I assumed
Hi,
I’m confused then! The “layout” method has been around a lot longer than Auto Layout and it worked in conjunction with the Auto-Resizing options (defined in the Size Pane in IB). I assumed
|
By
Dave
·
#756
·
|
|
Refactoring existing Core Data entity classes?
I have inherited some code where Core Data entity classes look something like this:
@interface Entity1 : NSManagedObject
Something* common1;
Something* common2;
Something* common3;
SomethingElse*
I have inherited some code where Core Data entity classes look something like this:
@interface Entity1 : NSManagedObject
Something* common1;
Something* common2;
Something* common3;
SomethingElse*
|
By
Steve Christensen
·
#755
·
|