objective c - iphone uitableview or uiscrollview better? -
objective c - iphone uitableview or uiscrollview better? -
regarding on negative commenst here simplify question in little steps
i have view based application communicates web service , recives xml, parse xml , map contens appropriate view component (e.g if thats date show question datepicker, if question has 2 values show segmented control, if more pickerview..etc) dynamic questionary many pages.
1-app receive xml
2-parse xml , latest un-answered questions (there can unlimited number of questions per each page), each question need asked either textbox or picker view or segmented command depending on question type, may need few labels explanition, , validation alerts, , question label. each question , label should have different fonts , colors, defined in xml.
3- user answers questions inhe page , press send button.
4-web service receives, checks answers , sends new question(s) asked depending on answers given.
5-app receives new xml (each xml includes whole state i.e previous answered questions) , parse find out latest unanswered questions.
6-user 1 time again answers , sends questions , wait next set of questions until there no questions asked
7-or user may want go , edit questions in previous pages. if edits question in previous pages pages answered after page not valid anymore, because each set of question server sends depends on previosly answered questions, needs delete later questions xml , sends request if latest page waiting response.
question:
1-should utilize uiscrollview or tableview? , general object oriented design here
you can utilize of them, depends on scenario. tableview offers memory management model default scrollview need manage memory yourself, managing means if set many ui elements on scrollview, app might start receiving memory warnings or in worst case can crashed. reusability of table cells allows set much more content without overloading memory, provided if utilize sensibly. need work on custom tableview cells view needed display questions.
iphone objective-c ios4
Comments
Post a Comment