[TIMOB-7746] iOS: add a subview at specific index
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | process |
Assignee | Unknown |
Created | 2012-02-13T01:52:49.000+0000 |
Updated | 2018-03-06T18:57:58.000+0000 |
Description
Hello :),
Wish it would be great to add a subview at a specific position like in the ios doc :
insertSubview:atIndex:
https://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIView_Class/UIView/UIView.html#//apple_ref/occ/cl/UIView
http://developer.appcelerator.com/question/132056/adding-a-view-to-the-beginning-of-a-scrollable-view#comment-113902
Regards
Hi, I'm trying hardly to understand the implementation of the sdk to make a custom function. This function would insert a subview in a scrollableView so as to create dynamic content, resolving the case where we need to create subviews o the left. The function would insert a subview in the scrollableView at the desired index. Plus if the index specified is smaller than the index of the current page, then the index of the current page has to be incremented by 1. Doing so, it may don't change the page currently displayed by the container (avoiding the current page to winkle too). I don't know anything about objective-C but i can't implement my project with the standard functions provided by the API, so i ask you humbly if you could help me to do this functionality. I saw that each classes uses a proxy for optimisation purposes, and I guess i'll need to update the file TiUIScrollableViewProxy.m with a function "addViewAtIndex" that would seems like the following :
... TiUIScrollableViewProxy.m (line 85-90) Many thanks
This is a duplicate of an existing bug, which I can't find at the moment.
If you don't find the duplicate ticket, please do not close it :)
.