Search Results

Search found 7 results on 1 pages for 'totato'.

Page 1/1 | 1 

  • connect tableView + tableView

    - by totato
    Right now I have an indexed tableview that goes to a detail view but i want it to go to another tableview then a detail view. my code like this: ` - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { displyAnnController *anController = [[displyAnnController alloc] initWithNibName:@"AnnView" bundle:[NSBundle mainBundle]]; DetailViewController *dvController = [[DetailViewController alloc] initWithStyle:UITableViewStyleGrouped]; switch (indexPath.row) { case 0: [self.navigationController pushViewController:anController animated:YES]; [anController release]; anController = nil; break; case 1: [self.navigationController pushViewController:dvController animated:YES]; [dvController release]; dvController = nil; break; default: break; }` and when I press the cell with index 0 in the simulator, the program is crash! what's the problem? pleas help me ..

    Read the article

  • delete in tableView..

    - by totato
    I just add this methods in .h file : - (IBAction)EditTable:(id)sender; - (IBAction)DeleteButtonAction:(id)sender; and in .m file : (IBAction)DeleteButtonAction:(id)sender{ [tableList removeLastObject]; [Table reloadData]; } (IBAction) EditTable:(id)sender{ if(self.editing) { [super setEditing:NO animated:NO]; [Table setEditing:NO animated:NO]; [Table reloadData]; [self.navigationItem.leftBarButtonItem setTitle:@"Edit"]; [self.navigationItem.leftBarButtonItem setStyle:UIBarButtonItemStylePlain]; } else { [super setEditing:YES animated:YES]; [Table setEditing:YES animated:YES]; [Table reloadData]; [self.navigationItem.leftBarButtonItem setTitle:@"Done"]; [self.navigationItem.leftBarButtonItem setStyle:UIBarButtonItemStyleDone]; } } when I run the program and click the delete button (red button) the program is stop ! whats the problem ? please any help ?

    Read the article

  • google calendar API in iPhone app!

    - by totato
    I just add gcal to my project according to this tutorial http://www.youtube.com/watch?v=it_9H0GxRNI but 12 errors is appeared: "_SecItemAdd", referenced from: -[GDataOAuthKeychain setPassword:forService:account:error:] in GDataOAuthViewControllerTouch.o "_kSecMatchLimit", referenced from: _kSecMatchLimit$non_lazy_ptr in GDataOAuthViewControllerTouch.o "_kSecClassGenericPassword", referenced from: _kSecClassGenericPassword$non_lazy_ptr in GDataOAuthViewControllerTouch.o "_SecItemDelete", referenced from: -[GDataOAuthKeychain removePasswordForService:account:error:] in GDataOAuthViewControllerTouch.o "_kSecAttrGeneric", referenced from: _kSecAttrGeneric$non_lazy_ptr in GDataOAuthViewControllerTouch.o "_SecItemCopyMatching", referenced from: -[GDataOAuthKeychain passwordForService:account:error:] in GDataOAuthViewControllerTouch.o "_kSecValueData", referenced from: _kSecValueData$non_lazy_ptr in GDataOAuthViewControllerTouch.o "_kSecReturnData", referenced from: _kSecReturnData$non_lazy_ptr in GDataOAuthViewControllerTouch.o "_kSecAttrAccount", referenced from: _kSecAttrAccount$non_lazy_ptr in GDataOAuthViewControllerTouch.o "_kSecClass", referenced from: _kSecClass$non_lazy_ptr in GDataOAuthViewControllerTouch.o "_kSecAttrService", referenced from: _kSecAttrService$non_lazy_ptr in GDataOAuthViewControllerTouch.o "_kSecMatchLimitOne", referenced from: _kSecMatchLimitOne$non_lazy_ptr in GDataOAuthViewControllerTouch.o ld: symbol(s) not found collect2: ld returned 1 exit status Build failed (12 errors, 1 warning) And no errors appears in console! what is the problem? :(

    Read the article

  • using jQTouch for large website

    - by totato
    I want to use jQTouch to build iPhone app for large website. When searched for it, I understood that I must edit my HTML code for website to be Suitable to my app, how I can do this without conflict with the style for my website? Also, what is the basic steps to using jQTouch ? just Add scripts and Initialize as here : http://code.google.com/p/jqtouch/wiki/GettingStarted . help me with many thanks.

    Read the article

  • open iphone Mail from Actionsheet..

    - by totato
    hi .. I want to open Mail app from my app when the one button in actionsheet is pressed, I know this way : -(IBAtion)openClick:(id)sender { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@”mailto:[email protected]”]]; } but can I write this method inside if statement or switch case?(in ControlView class NOT NSObject class , because I use actionsheet for this propose) like this: - (void)actionSheet:(UIActionSheet *)modalView clickedButtonAtIndex:(NSInteger)buttonIndex { switch (buttonIndex) { case 0: { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@”mailto:[email protected]”]]; break; } I can't test my code because simulator doesn't have the Mail app.. So I need to know is this will work in controlView or must write it in NSObject class ? + seconde question : I want to open Mail app from my app and copy the content in the view to mail body,then the user choice the contact from his contacts list ! Is this way achieve my goal?

    Read the article

  • move data that retrieved from XML file to iPhone DataBase

    - by totato
    The idea for my project is : retrieve announcements from my website to my iPhone app (using XML file),then I want to make the users of my app can select any announcement he want and click button in ActionSheet which moves the selected announcement to "favorite announcements tableview" (have Database for favorite announcements) "as apple done in favorite contacts in phone app for iPhone ". So, I want to copy some of this data to specific database in my app (and display in tableview) , can I do this? how? any hints? thanks..

    Read the article

  • XML with iPhone app !

    - by totato
    hi .. I just work on web-based application for iPhone, And I try to retrieve data from my website to my app. can I edit XML code for my website as I want to be in my iPhone app? for example, XML for my website is: <item> <title>Announcement title</title> <link>iphone feed</link> <description>Announcement type</description> <category>Students</category> <pubDate>April 5, 2010, 12:50 pm</pubDate> <guid>iphone feed</guid> </item> but I can't retrieve all of this to the tableview in my app. So, I will edit the code to be like this: <item> <category name="staff"> <Announcement title="welcome back"> <description> hope all of you enjoy in the vacation, and welcome back to university </description> </Announcement> </category> </item> Is this the right way?

    Read the article

1