-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subclasses UITableViewCells don't receive reuse identifier, and are not reused #7
Comments
One suggestion I could make is to require the XML markup to use the general use tags of tableviewcell, but include a xml attribute to indicate the ObjC classname to use. Additionally or alternatively it might be useful to allowing the default mapping from the elements to a Concrete class as a base configuration - perhaps this could be contained in options passed to the ISSViewBuilder? Or an external mapping? For example, a plist containing - such that the custom class will be created by default, and fallback to the built in types? |
Pull request #9 does not address custom class mapping, |
This has been working very well - although since tagToClass in internal to ISSViewHierachyParser, my XML becomes very un-DRY
It would be good to allow applications to override the default implementation class at application startup. |
Added initial support for this, by exposing the method Note though that it also is possible to specify the implementation class via the XML element name, i.e.:
|
The ISSViewHierarchyParser treats subclasses of UITableViewCell as a custom view type, and therefore does not call the designated initializer -initWithStyle:reuseIdentifier: -- as a side effect - the UITableView's dequeueReusableCellWithIdentifier: is not able to recycled Subclassed UITableViewCells.
The Sample's PrototypeExampleCell exhibits this behavior.
The text was updated successfully, but these errors were encountered: