Search Results

Search found 29 results on 2 pages for 'ghostrider'.

Page 2/2 | < Previous Page | 1 2 

  • passing parameter to view in IOS after a button is pressed

    - by ghostrider
    I am new to IOS programming. So far I have been programming in android. So in android when pressing a button code for passing an argument would be like that: Intent i = new Intent(MainScreen.this,OtherScreen.class); Bundle b = new Bundle(); b.putString("data_1",data); i.putExtras(b); startActivity(i); and on the activity that opens, i would write something like this: Bundle b = getIntent().getExtras(); ski_center=b.getString("data_1"); what methods should I need to change in MainScreen and in OtherScreen in IOS to achieve the above. Basically I will have 3 buttons lets say in my MainScreen and each of it will open the Otherview but each time a different parameter will be passed. Foe example for each button i have code like these in MainScreen.m @synthesize fl; -(IBAction) ifl:(id) sender { } So I need your help in where to place the "missing" code, too.

    Read the article

  • imagePickerController move and scale does not work

    - by ghostrider
    Here is my code: -(void) takePhoto { UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init]; imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera; //imagePickerController.editing = YES; imagePickerController.allowsEditing=YES; imagePickerController.delegate = self; [self presentViewController:imagePickerController animated:YES completion:NULL]; } #pragma mark - Image picker delegate methdos -(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { [picker dismissViewControllerAnimated:NO completion:nil]; [self.Picture setImage:[info objectForKey:UIImagePickerControllerOriginalImage]]; } and I have implemented the delegates UINavigationControllerDelegate,UIImagePickerControllerDelegate The image is taken, I can see the move and scale box, but when i move it the box returns to the initial posision - likes it bounces back. Why is that?

    Read the article

< Previous Page | 1 2