Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Slow tableView scrolling in ios

$
0
0

Hello everybody. All of my tableViews run really good and fast on android, but the same project run really bad and slowly on iOS. in my case - iPhone 4S. here is the example to my tableView that if there is more than 10 rows and even less the scroll move very slowly.

<Alloy>
    <Window>
        <View id = "mainWin" height = "Ti.UI.SIZE" layout = "vertical">
            <View id = "windowLogo" backgroundColor = "#252525" height = "160" top = "0">
                <View id = "timeInfo" top = "5" layout = "vertical" height = "Ti.UI.SIZE">
                    <Label id = "currentTime">08:13</Label>
                    <Label id = "currentDate">4 januar</Label>
                </View>
                <Label id = "nextQueueInfo" left = "10" bottom = "10">next fifo</Label>
            </View>
            <TableView bubbleParent = "false" id = "mainTableView" layout = "vertical" height = "Ti.UI.FILL">
                <TableViewRow className = "myQueueRow" height = "Ti.UI.SIZE" layout = "vertical">
                    <View height = "Ti.UI.SIZE">
                        <View layout = "horizontal" height = "Ti.UI.SIZE" width = "Ti.UI.SIZE" left = "10" bottom = "0">
                            <View layout = "vertical" height = "Ti.UI.SIZE" width = "Ti.UI.SIZE" right = "10">
                                <Label id = "queueTime">12:12</Label>
                                <Label id = "queueDate" top = "0">20:20</Label>
                                <View layout = "horizontal" height = "Ti.UI.SIZE" width = "Ti.UI.SIZE">
                                    <Label id = "placeInQueue">place</Label>
                                </View>
                            </View>
                            <View width = "1" top = "10" bottom = "10" height = "60" right = "5" backgroundColor = "black" ></View>
                        </View>
                        <View height = "Ti.UI.SIZE" layout = "vertical" bottom = "10" top = "5">
                            <View layout = "horizontal" height = "Ti.UI.SIZE" width = "Ti.UI.SIZE" right = "10">
                                <View height = "Ti.UI.SIZE" width = "Ti.UI.SIZE" layout = "vertical">
                                    <Label id = "businessName" right = "10">check</Label>
                                    <Label id = "branchInfo" right = "10">test</Label>
                                </View>
                                <View height = "Ti.UI.SIZE" width = "Ti.UI.SIZE" layout = "vertical">
                                </View>
                            </View>
                        </View>
                        <View height = "1" bottom = "0" backgroundColor = "black"></View>
                    </View>
                </TableViewRow>
            </TableView>
        </View>
    </Window>
</Alloy>
If you will multiply the rows to something like 10 you will see drastically decreasing in the scroll performance. does someone know what can I do? Thank's!

Viewing all articles
Browse latest Browse all 8068

Trending Articles