iphone

How to retain value in UITextfield

I am implementing Text to Speech for Iphone, and successfully implemented it, but how to retain value in text field when second time I re-open my application. I want to read the text from where I left. So is NSUserdefault is good approach? But what if when i using a file instead of textbox and want to start reading from same place where...

UITabBar get selected item

How can I catch the event when an item is selected from a UITabBar on iPhone/iPad app? ...

how to get back in navigation view

hi i am new to iphone application. i am doing an application that consist of image picker and image view. i am displaying the image in imageview by selecting the image in image picker .. what i need is afetr 3 seconds i have to go back imagepicker how can i done this please give code for that ...

display a bg image in table view for iphone

i can display BG image in table view cell but when i click any cell there is a blue color filling all my cell and my images just goes behind now i want to show my image in front of that blue color how to do that?? cell.backgroundView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"SuperCell.png"]] autorelease]; ...

iPhone simulator only shows a black screen after launching the app

Hi I am moving my 3.x app to use iOS4 features like background processing, fast-app switching. I have been able to get the app running fine. But now whenever I launch the app on the simulator, it just shows a black screen. The app launches, status in XCode changes to running but nothing shows up other than the black screen. The app run...

App terminates after viewcontroller calls the delegate to close the view.

Hi experts, here the situation: i have a viewcontroller which calls in the function "viewDidLoad" a function in the AppDelegateIphone to terminate this view. The problem is that this exception comes if i make this: splashScreen.view = nil; *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: ...

memory leak in device not in simulator

I have checked using instruments and not found any memory leaks. when i check in device it shows memory leaks with responsible caller -[NSKeyedUnarchiver decodeObjectForKey:] and object is UIRoundedRectButton. I still not using NSKeyedUnarchiver or any type of decoding. Is following code, is responsible for this memory leak ? - (void)s...

Secure information contained on iPhone SQLite DB

I am working on an iPhone app that uses CoreData(with SQLite) to stores some sensitive biographical data that is downloaded via a Restful Web Services for offline use in the device. I am worried that the competition could pay a subscription and extract the .sql file via SSH with a jailbroken device, and make copies of the data that has...

filling image in table view for 2 data for iphone

i have a png that shows 2 cell values data like lets say home and address but i dont know how to show them in 2 cells like in upper cell will be home and bottom will be address right now my image is compressed in 1 cell only i cant continue for 2nd cell any idea switch(indexPath.section) { // cell.detailTextLabel.text...

How to make a cell in a grouped tableview a button for the iphone

Currently I have a grouped tableview with four different custom cells. My last cell needs to be a button but I'm not sure how to implement this correctly. My code is below: cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; UIButton *btn = [UIButton button...

iPhone Testing Microphone Using Emulator

Can I test the voice recording using the iPhone emulator or do I need the actual device? ...

CoreData best practises

I'm using CoreData in my lastest iPhone app. I find it complex at the beginning but I guess this is the best choice when you need to store objects in an iPhone app (http://inessential.com/2010/02/26/on_switching_away_from_core_data). Is there any best practices when using CoreData in an iPhone app ? For example, I don't want all my cont...

UITableView frame modification with animation issue

Hello. I have tried in so many ways to animate the frame modification of a UITableView, but when I shrink the tableview then the animation isn't smooth, first the cell content disappears, and only after that the frame is modified. As I saw this problem is present only in older OS, from iOS 3.2 this problem is fixed. Can anyone tell me a...

Does UIWebView has problems with .aspx-requests and link- / phonenumber-detection?

I've encountered a strange problem, when it comes to displaying a page in a UIWebView on iPhone SDK 4.0. I load a page with a .aspx-request and receive completely valid html-sourcecode. Inside the html is an email-address linked like this: <a href="mailto:[email protected]">[email protected]</a><br /> When I activate the link-detection in the...

UI Elements placed in IB appears shifted up in Simulator

I dont know if I am missing something here but when I drop elements (UIImage or UILabel) in IB and run the app in simulator, the UI elements are shifting up a little (Snapping to status bar if I place them at first blue HIG line). Looks like some setting I am overlooking. Does this sound familiar? please help! Added Screenshot to expl...

Objective C memory problem

Hi all, I have 2 scenarios and I want to know which way is correct and better? -(Employee*) getCustomEmployee{ Employee *emp = [[Employee alloc]init]; // no autorelease here //do something with emp return emp; } -(void) process{ Employee *emp = [self getCustomEmployee]; //do something with emp [emp release]; //rel...

how to show image on right hand side of table view for iphone

i can show image on left hand side of table view but why my right hand side is not working CGRect frame; frame= CGRectMake(310 ,10, 50, 50); UIImageView * myImageView = [[UIImageView alloc]init]; cell.myImageView.image = [UIImage imageNamed:@"bowl.png"]; myImageView.frame = frame; [myImageView release]; ...

why is the landscape mode view still show width less then height?

try this, say you have a simple landscape mode iphone app, like a simple viewcontroller app. also uncomment the autorotate in viewcontroller .m file like so -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { NSLOG(@"width:%f,height:%f",self.view.frame.size.width,self.view.frame.size.height);...

Debugging on iOS 4.0.1 Device crashing

Hi Trying to fix a bug on iOS 4 but when I debug it crashes with these errors: SDK is installed in seperate directory as I need to deug 3.1.3 as well Developer_Xcode3_2_3_iOS_SDK_4_0_1 Device is running 4.0.1 Any ideas? Cheers [Session started at 2010-07-27 14:26:45 +0100.] Undefined command: "Developer". Try "help". Undefined com...

How to display data's over udp

I created one sample application that receive data over udp process, and display the data in iphone. In udp receives there is thousands of data comes in 3 sec.How can i stores these data's ? and how can i display it ? Now i can store the data as NSMutableArray and displayed in UItableview . Every recive of data i added data to nsmutabl...