NSMutableDictionary在iphone sdk中存疑

时间:2011-12-07 08:41:59

标签: iphone

哈哈,大家,我正在做读者应用程序,在我的应用程序中有一个googledoc的笔记同步选项,所以用户在笔记视图中写下笔记并保存,保存的笔记显示或保存在另一个在UItableview中查看控制器。我的要求是当用户点击gDoc按钮时,它自动想要将UiTableView中的所有笔记同步到GDoc。我只是在按下保存按钮时通过此代码保存笔记

-(IBAction)savedNote
{

[delegate.indexArray addObject:[NSString stringWithFormat:@"%@ %@:%@",delegate.selectedBook,delegate.selectedChapter,delegate.selectedIndex]];
    [delegate.notesArray addObject:textVieww.text];
        [notes setValue:textVieww.text forKey:[NSString stringWithFormat:@"%@ %@:%@",delegate.selectedBook,delegate.selectedChapter,delegate.selectedIndex]];
    NSString *DataPath = [Malayalam_BibleAppDelegate getPath];
    [delegate.data writeToFile:DataPath atomically:YES];
    proAlertView *alert = [[proAlertView alloc]initWithTitle:@"NOTES" message:@"Notes Saved" delegate:self cancelButtonTitle:@"ok" otherButtonTitles:nil];
    [alert setBackgroundColor:[UIColor colorWithRed:0.255 green:0.218 blue:0.185 alpha:1.0] withStrokeColor:[UIColor colorWithHue:0.625 saturation:0.0 brightness:0.8 alpha:0.8]];
    [alert show];
    [alert release];
}

-(IBAction)_clickbtngoogledocsync:(id)sender
{
 Googledocmainpage *detailViewController = [[Googledocmainpage alloc] initWithNibName:@"Googledocmainpage" bundle:nil];
         // Pass the selected object to the new view controller.
        detailViewController.localStringtextnote = localStringtextnote;//i want to pass these note to googledocmainpage as localstring
        [self.navigationController pushViewController:detailViewController animated:YES];

        [detailViewController release];
        UIView *langview = (UIView *)[self.view viewWithTag:120]; 
        //ViewWithTag Number should be same as used while allocating
        [langview removeFromSuperview];
        /* [self.view addSubview:syncView];
         UIView *popView = (UIView *)[self.view viewWithTag:106]; 
         //ViewWithTag Number should be same as used while allocating
         [popView removeFromSuperview];*/
    }

怎么做。谢谢。

0 个答案:

没有答案