优化UIWebView的HTML5

时间:2015-06-09 14:45:23

标签: ios uiwebview

有没有办法优化#define MAX_LENGTH 100 void main() { char data[MAX_LENGTH] = {'\0'}; char old[] = "HJB"; char match[] = "yes"; char nomatch[] = "not"; int m; int count = 0; USARTInit(25); //UBRR = 51 //Loop forever while(1) { // This method will give you only one character at a time // As I can see you are comparing only three characters so // You need to compare when three characters you got from UART data[count] = USARTReadChar(); if(data[count] != NULL) // check whether valid data came count++; if(count > 3) // this will tell that you got three valid caracters { count = 0; // You can again start comparing if(strcmp(data,old) == 0) // Here you can use strcmp() { for(m=0;m<3;m++) { USARTWriteChar(match[m]); } } else { for(m=0;m<3;m++) { USARTWriteChar(nomatch[m]); } } } } } }

我听说您可以使用write UIWebView来优化性能。

1 个答案:

答案 0 :(得分:1)

我不知道有任何快速修复,或者在iOS上轻松出局以使现有的HTML5应用程序运行得更快,但是你可以做一些number of个人的事情来让它在整体上表现得更好(并且获得好处)在移动设备上获胜)