iphone

Interface Builder: How to open a subview in its own window?

When designing/laying out a view in Interface Builder, sometimes it would be nice to be able to open that view in its own window, rather than along with all of its parents. Is there a way to do that? A good example is when you have a long view with controls and labels and text fields, lets call this mycontent view, and this mycontent v...

Memory issue in iPhone OS (shorter version)

I'm facing some sort of memory related issue I cannot figure out. I have one summary view that lists some settings and a detail view where you can edit each setting. In the summary view I have a tableview populated by an array (settingArray) of settings which in turn is loaded from a core data repository. // SettingsViewController.h...

How to do HTTP Server Push -- aka do I NEED STOMP, AMPQ, etc?

I am writing a collection of web services, one of which needs to implement server push. The client will be native Objective-C. I want this to be as simple, fast, and lightweight as possible. The data transmitted will be JSON. Is it possible to do this without using a message broker? ...

Grouped UITableView Footer Sometimes Hidden On Quick Scroll

OK, this one is a puzzler. There is one similar post but it's not similar enough to count, so I'm posting this one. :) I've got a grouped UITableView with a header and footer. The footer includes two UIButton views, side-by-side. Nothing major. Now … there is a toggle button in a UIToolbar at the bottom for more/less info in this table...

doubt in UIpickerview with button

hi i have used UIButton and also UIpickerview,when i select value(select team) ,the value is changed(india).but when i hold the button(india) ,the value is changed to initial value(select team).if i release the button from pressing ,the value is changed(india).but i want to do when i hold , the button must show (india) ...i want to use s...

Do you have to release IBOulets in dealloc?

Do you have to release IBOulets in dealloc? I'm not sure on this one because I didn't do the alloc and typically you only release for something you called alloc on. Anyone know? ...

iPhone: Data structure choice

I need to keep track of a bunch of objects that can be identified by two keys (Latitude and longitude actually, but there are some other properties). I need to do things like search for a particular object by those two keys, updating it if it is there and inserting if not. I was thinking. I was looking at NSDictionary and NSSet but th...

MPMoviePlayer with an untrusted server certificate

I need SSL for encryption not for an authentication, so I don't think I'm going to pay for a certificate. I use the code below to bypass certificate check for common NSURL request. @implementation NSURLRequest(DataController) + (BOOL)allowsAnyHTTPSCertificateForHost:(NSString *)host { return YES; // Or whatever logic } @end But...

Remove html tags from UIWebView

Hi, I am developing an application for iphone which needs to load some description to a UIWebView. But text that loads into the UIWebView shows some html tags like <p></p>.Is there any way to remove these type of tags? Thanks in advance ...

present and dismiss modal view controller

Can anyone give me the example code that I can use to first present a modal view controller, then dismiss it? This is what I have been trying: NSLog(@"%@", blue.modalViewController); [blue presentModalViewController:red animated:YES]; NSLog(@"%@", blue.modalViewController); [blue dismissModalViewControllerAnimated:YES]; ...

xmlvm for iPhone apps in java?

Does this method work well for developing apps in windows? Any testimonial or examples of apps developed in java using xmlvm? Looking for the best free method to develop apps in windows. Thanks. ...

Memory allocation and release for UIImage in iPhone?

Hello all, I am using following code in iPhone to get smaller cropped image as follows: - (UIImage*) getSmallImage:(UIImage*) img { CGSize size = img.size; CGFloat ratio = 0; if (size.width < size.height) { ratio = 36 / size.width; } else { ratio = 36 / size.height; } CGRect rect = CGRectMake(0.0, 0.0,...

UIAccelerometer Stop Problem

Hello All, How to Detect UIAccelerometer stop event when user stop moving the iPhone. So how to detect the stopping of moving the phone ...

Animating UIButton images

I'd like to give a UIButton in my app a continuous "pulsing" effect where it animates through a series of images and then reverses back through these same images. I've found examples of UIImageViews using their animationImages property, but all I've found for UIButtons is animating changing their alpha. The UIView method setAnimationRe...

Objective-C:UIScroller and UItextfields hidden by keyboard appearing in UIViewController

I need help trying to configure in a UIViewController, the keyboard : (a) not hovering over both UITextfields, so the scroller should be positioned correctly; and (b) When the user touches the background the keyboard disappears. I havent tried (b) yet but im trying (a) and the code I got from googling around didn't give me the desired e...

iPhone app: recover view after didReceiveMemoryWarning

The app in question has a MainView->ModalView pair. The ModalView is shown via UIModalTransitionStyleFlipHorizontal. In case of didReceiveMemoryWarning, MainView is dumped (since it is not visible) and the app stays "alive" but when you flip back there is a (very) short period of time when the screen is blank (since the modal dialog is r...

iPhone Sounds and delay

Hello, I am developing an application where the user can tap multiple hit areas which produces sounds. But the result is a little laggy, when multiple sounds start at the same time, the sounds are played with an ugly delay. I am using AVAudioPlayer instances for each sound. Is there a better way to play sounds and prevent this lag? He...

How can I get iPhone OS 3.0 and 3.1 (I have iPhone Developer Program)

Hi All, I have iPhone Developer Program. And My iPod touch has iPhone OS 2.2.1. I wanna update my touch to 3.0. But I cannot find the link for getting iPhone OS 3.0 Please let me know how to get iPhone OS 3.0 and 3.1 Thanks. ...

iPhone - dequeueReusableCellWithIdentifier issue with custom cells

Hi I am using a custom UITableViewCell class. My cell has multiple buttons (4 to be precise) on it and the button clicks are handled in the UIViewController which uses this cell class. I was trying to use the button's tag to calculate the row number on which the button was clicked. But doing this causes an issue if a cell was not creat...

Problems with doing a flip animation between a UIView and UIScrollView

I'm new to iPhone development and I'm trying to do a flip animation between a UIView and another UIView containing a regular UIView and a UIScrollView, the scroll view in turn has several UIViews as subviews. Before the animation start, the scroll view needs to be offset to a particular point to show a particular subview (the user is...