Closed Umaid1 closed 11 years ago
Check out commit https://github.com/appsome/AccordionView/commit/9cffe8c3ac49a620fa3da5d5b33aded497ecf83f Ability to remove sections is now built in :)
This is not functioning properly. Actually when you remove second view from the array, 3rd view take its position perfectly fine, but I am unable to open 3rd View accordion and on tapping 3rd View header only first view is re-opening couple of times.
https://github.com/appsome/AccordionView/commit/cb6a18ddb60c8d7e6f3b651c1ddbfc95e5d9fc8f it should work now :)
I tried writing my own remove header function but lacking last objects now for closing and opening my rows. Looking for assistance to optimize my code.
(void)removeHeader:(id)aHeader withView:(id)aView { if ((aHeader != nil) && (aView != nil)) { [headers removeObject:aHeader]; [views removeObject:aView]; [originalSizes removeObject:[NSValue valueWithCGSize:[aView frame].size]];
} }