[Solved] I want to get particular key wise value without For Loop use [closed]

You can get it as : NSString *string=yourDict[@”WIDTH”]; Or, NSString *string=[yourDict objectForKey:@”WIDTH”]; Check NSDictionary Documentation and new Objective-C literals And please please please Start learning Objective-C, may be from Apple Documentation. Edit: As you changed your question and added “Setting:”. Now you need to use : NSString *string=yourDict[@”Setting”][@”WIDTH”]; EDIT 1: I think you have array … Read more

[Solved] Future value function in iPhone SDK

No, neither Objective-C nor Apple’s frameworks include specific financial functions. It’s trivial to implement. The Wikipedia article you link to includes the formula. You might also want to consider something like QuantLib if you ever get onto more sophisticated calculations. The formula — copied from the Wikipedia article you linked to — is: FV = … Read more

[Solved] how to create login screen for iPhone Xcode [closed]

if([_txt_username.text isEqual:@”rotanet”] && [_txt_username.text isEqual:@”rotanet”]){ UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@”Storyboard” bundle:nil]; ViewController* viewController = [storyboard instantiateViewControllerWithIdentifier:@”ViewController”]; [self presentModalViewController: viewController animated: YES]; } 2 solved how to create login screen for iPhone Xcode [closed]

[Solved] How to convert decimal into octal in objective c

You have to initialize a new NSString object using the right format specifier. Like : int i = 9; NSString *octalString = [NSString stringWithFormat:@”%o”, i]; // %O works too. This will create an autoreleased NSString object containing octal string representation of i. In case you start from a NSString containing a decimal number representation, you … Read more

[Solved] How to append parameters to string in Objective C?

I’m guessing that the string you put at the beginning is the desired output. In which case your method should be something like… – (NSString *)parameterStringWithWidth:(NSString *)width aspect:(NSInteger)aspect rim:(NSInteger)rim season:(NSString *)season pattern:(NSString *)pattern time:(NSInteger)time { return [NSString stringWithFormat:@”getTyreLabels?width=m%@&aspect=%ld&rim=%ld&season=%@&time=%ld”, width, (long)aspect, (long)rim, season, (long)time]; } That will return the string. Not the URL but you should … Read more

[Solved] Show JSON in tableview IOS Xcode [closed]

try this convert the response json into NSDictionary NSDictionary *receivedDataDic = [NSJSONSerialization JSONObjectWithData:operation.responseObject options:kNilOptions error:&error]; now access the values which you want by using key names , like NSString * id = [receivedDataDic valueForKey:@”id”]; NSString * name = [receivedDataDic valueForKey:@”name”]; use those variables where you want make these changes in your code @interface ViewController () … Read more

[Solved] Styling a button that was created in interface builder

This is actually really easy. You just have to create a @property and connect the button you want to style by control dragging from the button to the newly created property. The property should look something like this: @property (nonatomic, strong) IBOutlet UIButton *registerButton; Then in the viewDidLoad, you put the above code that targets … Read more