how do i display the data saved in table
<p>I have save my data into NSUserDefaults but i do not know how to display it into the UITable. Please help. Urgent. thanks. If possible, provide me some sample coding.</p>

<p>-(IBAction)savehighscore_button {</p>

<pre><code>int i, ii = -1;

struct high_score {
    NSString *name;
    int highScore;
}; 

NSString *nameentered;

nameentered = nametextbox.text;

struct high_score structArray[10];

NSUserDefaults *userPreferences = [NSUserDefaults standardUserDefaults];

for (i=0; i&lt;10; i++) {

    if ([userPreferences stringForKey :[NSString stringWithFormat:@"highScoreNameEntry%d",i]] !=nil &amp;&amp; [userPreferences stringForKey :[NSString stringWithFormat:@"highScoreEntry%d"]] !=nil) {
        structArray[i].name= [userPreferences stringForKey:[NSString stringWithFormat:@"highScoreNameEntry%d",i]];
        structArray[i].highScore = [userPreferences integerForKey:[NSString stringWithFormat:@"highScoreEntry%d",i]];
        ii = i;
    }
}
if (myScore &gt;0) {
    for (i==ii; i&gt;=0; i--) {
        if (myScore &gt; structArray[i].highScore) {
            if (i&lt;9) 
                structArray[i+1] = structArray[i];
                structArray[i].name = nameentered;
                structArray[i].highScore = myScore;

                if (i==ii &amp;&amp; i&lt;9) 

                    ii=i+i;
                }

                else if(i==ii &amp;&amp; i&lt;9) {
                    structArray[i+1].name = nameentered;
                    structArray[i+1].highScore = myScore;
                    ii=i+1;
                }
            }
        }

        if (ii==-1 &amp;&amp; myScore &gt;0) {
            structArray[0].name = nameentered;
            structArray[0].highScore = myScore;
            ii=0;
        }
        for (i=0; i&lt;=ii; i++) {
            [userPreferences setObject:structArray[i].name forKey:[NSString stringWithFormat:@"highScoreNameEntry%d",i]];
            [userPreferences setInteger:structArray[i].highScore forKey:[NSString stringWithFormat:@"highScoreEntry%d",i]];

        }

[userPreferences synchronize];

[nametextbox resignFirstResponder];

[self viewDidLoad];
</code></pre>

<p>}</p>
