[Solved] Drawing a bar gauge [closed]

for(int i=1;i<30;i++) { imgview=[[UIImageView alloc] initWithImage:[UIImage imageNamed:@”imagename.png”]]; imgview.frame=CGRectMake(10+i*10, 10, 10, 20); imgview.tag=i; [self.view addSubview:imgview]; } do this loop with some animation 4 solved Drawing a bar gauge [closed]

[Solved] How to detect voice in my iPhone app? [closed]

Use AVAudioRecorder – Audio Metering – checkout out this tutorial – dettect when a user blows into mic http://mobileorchard.com/tutorial-detecting-when-a-user-blows-into-the-mic/ Quick Example: _audioRecorder.meteringEnabled = YES; //1. This method will get the current mic activity and will format it to a 0 – 1 scale. -(void)checkRecordingMeters:(NSTimer *)timer { [_audioRecorder updateMeters]; const double ALPHA = 0.2; float peakPower … Read more

[Solved] ObjectAtIndex method of an NSMutableArray Object [closed]

Likely it is a memory management issue. Are you abiding by rules set out in the Memory Management Programming Guide? Try: revising the memory management rules, make sure you are not using any objects that you don’t own, make sure you are retaining objects you want to keep (and releasing them appropriately afterwards); running your … Read more

[Solved] “-[__NSDictionaryI length]: unrecognized selector sent to instance” error without NSDictionary?

[NSJSONSerialization JSONObjectWithData:data options: NSJSONReadingMutableContainers error:&error]; is never returning a string. Either a NSArray or a NSDictionary. (The documentation only promises: A Foundation object from the JSON data in data, or nil if an error occurs. So it might be another type in future). You error starts with -[NSDictionaryI length]: so in your case it is … Read more

[Solved] streaming audio player for background play

Introduction The [Solved] streaming audio player for background play is a powerful and versatile tool for playing audio files in the background. It allows users to stream audio files from a variety of sources, including online streaming services, local files, and even audio CDs. The player also supports a wide range of audio formats, including … Read more

[Solved] Converting Date to proper format when the Value obtained from the Db is in format 2012-07-13 00:00:00.0 [duplicate]

Use this one NSString *dateStr=@”2012-07-13 00:00:00.0″; NSDateFormatter *df = [[NSDateFormatter alloc] init]; [df setDateFormat:@”yyyy-MM-dd HH:mm:ss.S”]; NSDate *date = [df dateFromString: dateStr]; [df setDateFormat:@”MM/dd/yyyy”]; NSString *convertedString = [df stringFromDate:date]; NSLog(@”Your String : %@”,convertedString); Output: Your String : 07/13/2012 6 solved Converting Date to proper format when the Value obtained from the Db is in format 2012-07-13 … Read more

[Solved] What’s the analogue of the display method for UIView?

Apple’s documentation is a rather rich source of information – most of the time. The UIViewclass reference notes a method that informs the system that a view needs to be redrawn: setNeedDisplay Something you should have been aware by browsing the documentation for a couple of seconds. solved What’s the analogue of the display method … Read more

[Solved] New to iOS development. Need Resources [closed]

Tack a look at video tutorial of Lynda. Its good to take a look at that video and than start developing app in iPhone. For good tutorial my favorite sites are Raywenderlich, EDUMobile, mobileTutPlus, Technotopia. And for sample code i suggest GITHub, Cocoacontrols, Code4app. And this is really helpful books, Programming in Objective-C 2.0 (2nd … Read more

[Solved] Program crashing after trying to read a NSString

The problem is probably that that _guideDescription string already is deallocated when you try to access it in -saveIntoExisted. You are now doing _guideDescription = [[NSString alloc] initWithString:[[notification userInfo] valueForKey:@”selected”]]; and that works, but I would recommend: [_guideDescription retain]; That makes sure the system doesn’t deallocate the string. solved Program crashing after trying to read … Read more