Note that there are some explanatory texts on larger screens.

plurals
  1. POIphone : How to return a image or anything from second view to first view?
    primarykey
    data
    text
    <p>please check the picture you will more clear what I want to present</p> <p>This is the first launch in First View</p> <p>It's an empty table view</p> <p>There is a add button on the right bar</p> <p><img src="https://i.stack.imgur.com/hnObI.png" alt="alt text"></p> <p>If you press the Add button it will push to the Second View</p> <p>The second is a only 3 rows table view</p> <p><img src="https://i.stack.imgur.com/OklcB.png" alt="alt text"></p> <p>Tap the first row it will pop up a alert view to let you set a name</p> <p><img src="https://i.stack.imgur.com/GTyZ8.png" alt="alt text"></p> <p>Press create ,the text will appear in the first row</p> <p>&lt;<strong>That's the question 1,I don't know how to pass the text to the cell...</strong>></p> <p>And keep forward ,That's a custom radio button in the row 2 and row 3</p> <p>Unless You click the radio button first , otherwise you can't call this methord</p> <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath </code></pre> <p>This is last two view Icon View 1 <img src="https://i.stack.imgur.com/mXiwZ.png" alt="alt text"> Icon View 2 <img src="https://i.stack.imgur.com/0MedQ.png" alt="alt text"></p> <p>There are many buttons in the view,This the second question: If I press one of this button,it will return to the second view and show the button icon on the tableview row 2 or row 3</p> <p>Finally,press the Done button(same on the right bar)</p> <p>It will back to the First View and show what you type the name , and which icon you selected (Basis on radio button is selected)</p> <p>That's the last question.</p> <p>I upload my source code here:<a href="http://www.sendspace.com/file/m5wju9" rel="nofollow noreferrer">Link</a></p> <p>You can download it ...</p> <p>and here is the code about how I push the view...</p> <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { if (indexPath.row==0) { [self nameInputAlertView]; } RadioButtonClass *btn = [radioButtonArray objectAtIndex:[indexPath row]]; if (btn.selected) { //Radio Button is selected ,use that icon if (indexPath.row == 1) { IconViewOne *iconViewOne = [[IconViewOne alloc]init]; iconViewOne.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; [self.navigationController pushViewController:iconViewOne animated:YES]; [iconViewOne release]; } if (indexPath.row==2) { IconViewTwo *iconViewTwo = [[IconViewTwo alloc]init]; iconViewTwo.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; [self.navigationController pushViewController:iconViewTwo animated:YES]; [iconViewTwo release]; } } } </code></pre> <p>so...Summary all the question...</p> <p><strong>1.How to write a text via textfield in the alert view to table view cell ?</strong></p> <p><strong>2.How to selected an icon from last view to second view ?</strong></p> <p><strong>3.Send all this two elements to First view : Name &amp; Icon</strong></p> <p>I only know how to pass elements from view 1 to view 2... Don't know how to return back......</p> <p>Thanks mate , please help me to figure out this problem.I will very very appreciate !</p> <p>BTW:you can take the radio button class to add in your any project</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload