[Solved] How to pass the NSString from One UIViewController to Another UIViewController? [duplicate]

-(IBAction)buttonClicked:(id)sender { //check = [[NSString alloc] init]; — NO Need if (btn1.tag == 0) { check = @”foo”; NSLog(@”%@”,check); } if (btn2.tag == 1) { check = @”bar”; NSLog(@”%@”,check); } ViewController2 *obj = [[ViewController2 alloc] initWithNibName:@”ViewController2″]; [obj setCheck:check]; //push to ViewController2 [obj release]; } In your second view controller, #import <UIKit/UIKit.h> @interface ViewController2 : UIViewController … Read more

[Solved] Remote wipe iOS devices [closed]

If your enterprise uses Microsoft Exchange you can setup policies to control remote wiping through exchange. The policy options are pretty powerful. You can give the user access to wipe their own device through the webmail portal or exchange admin’s can wipe a device… solved Remote wipe iOS devices [closed]

[Solved] how to check multiple buttons click and save the value on plist? [closed]

*If I understood what you want then here is some logic. You can add/remove to make upto your requirement. *Directly typed here, errors/typos probable. Please conside. In your interface file: @property BOOL yourChoice;//0-easy, 1-hard @property BOOL plus; @property BOOL minus; @property BOOL divide; @property BOOL multipy; @property (strong) NSInteger score; @property (strong) NSMutableArray *scores; In … Read more

[Solved] How to change UIPickerView image

i have tried this code [[[self._picker1 subviews] objectAtIndex:3] setAlpha:0.0]; // this view contains the background so you can change it with your new background // object at index 4 is your labels or images so they must be shown [[[self._picker1 subviews] objectAtIndex:5] setAlpha:0.0]; [[[self._picker1 subviews] objectAtIndex:6] setAlpha:0.0];// this is you indicator , you can add … Read more

[Solved] unrecognized selector sent to instance in Array [duplicate]

Your problem is that the compiler thinks you’ve declared “m_ArrContactsOrgEntity” as something other than a NSMutableArray. Otherwise, you wouldn’t be seeing that “unrecognized selector” error. Another hint of advice for you, best practice in Objective-C is that variables should always start with lower case letters. Change “ObjIstructContacts“, “Qnarray” and “Qnstream” to start with lower case … Read more

[Solved] what is the BEST way to populate several tables with different data on one view? [closed]

An easier way than BalaChandra’s answer(that it´s correct): I suppose your UITableViews are instance variables (or even properties). So if you have instantiated your table views like: UITableView *tableViewA = [[UITableView alloc] init…]; UITableView *tableViewB = [[UITableView alloc] init…]; for example, you don’t need setting the tag to the tableviews. In the UITableViewDelegate/UITableViewDataSource methods you … Read more

[Solved] How to draw a circle and move it / drag it on touch in IOS? [closed]

Well you could create a custom UIView and overwrite it’s drawRect method to draw the circle. The drawRect method would then look like this: – (void)drawRect:(CGRect)rect { CGContextRef ctx = UIGraphicsGetCurrentContext(); CGContextSetFillColorWithColor(ctx, [[UIColor redColor] CGColor]); CGContextFillEllipseInRect(ctx, self.bounds); } Don’t forget to set the views background color to the clear color. To handle the movement, add … Read more