iphone

Two textviews switch from foreground to background and back

I have a view with two textviews in it. By touching on the first textview i resize it to "fullscreen" an it works fine, but touching ob the second textview the part where the first textview is is behind the first textview. Is there any possibility to set to change overlap properties ob the textviews? ...

class 'Parser' does not implement the 'NSXMLParserDelegate' protocol

I just downloaded the code from http://cocoadevblog.com/iphone-tutorial-creating-a-rss-feed-reader to see how to implement rss feeder And it shows a warning " class 'Parser' does not implement the 'NSXMLParserDelegate' protocol " at [rssParser setDelegate:self]; in parer.m. App loads in simulator but does not work. I checked in refernces...

My iPhone 3G apps (icon) names not showing

My iPhone 3G apps (icons) names not showing on screen? How can I get them back on screen? version I have now is 3.0 ...

How to have a UIView appear from the middle of the screen

I looked at Apple's UIModalTransitionStyle, but didn't see what I was looking for. I want to do the same thing that the Facebook iPhone App does; when you touch on a button on the Facebook's homescreen, the new UIView appears (and then disappears when you are done) from the middle of the screen. I would like to implement similar transi...

NSXMLParserDelegate Error when upgrading iphone code 3.x code to 4.0

I have updated my iphone sdk code from 3.x to 4.0. I am getting cannot find protocol declaration for NSXMLParserDelegate Its showing error when build and debug but when i run application its showing as warning. I just want to remove all before submitting to app store If i added protocol declaration then its not compiling for 3.x How...

iphone developer program gap

Hello, I have a client that has around 200 employees. They don't qualify for the enterprise account, but need more devices than the standard business account (currently 100). Does anyone know how to handle the middle ground? Are you allowed to have multiple accounts to handle this? Thanks! Rob ...

Pass-by-value argument in message expression is undefined

Hello. I'm developing an iPhone application and I getting that warning at method: NSNumber *latitudeValue; NSNumber *longitudeValue; [self obtainLatitude:latitudeValue longitude:longitudeValue]; The method is declared as follows: - (void) obtainLatitude:(NSNumber *)latitudeValue longitude:(NSNumber *)longitudeValue { NSNumberF...

Fix UIScrollView to pass events UP the chain rather than DOWN

UIView's that don't handle their events pass them up the chain. By default, this passes them to their parent View, and if not handled (ultimately) to their parent UIViewController. UIScrollView breaks this (there's lots of questions on SO, variations on the theme of "why does my app stop working once I add a UIScrollView?) UISV decides...

how to disable user interaction for a button

i have a play button in my view,if i press play its gets updated the stream and started playing.. until i get play song i dont want to take any user interactions on play button.. can any ony help me on this..... ...

Optimizing memory usage via appropriate data types

All, I've been a Java developer for 10 years...when it comes to managing numerical data, for the most part I've stuck with int and used double when I need some decimal precision. The reason is we pretty much have a large heap space to work with and exhausting it is pretty difficult for the most part... I'm starting iPhone development ...

iPhone - Rejected for not using HTTP Live Streaming protocol

My first application got rejected for not using the HTTP Live Streaming Protocol. Ok, now I have done some reading, and apparently I need to re-encode with Apples 'HTTP Live Streaming Tools' my videos into various files so it can be streamed. So am I correct, that I don't have to change anything in my binary/code to refresh my app or is...

Get all NSDates BETWEEN startDate and endDate.

Hey everybody, My question is the REVERSE of the typical "How do I find out if an NSDate is between startDate and endDate?" What I want to do is find ALL NSDATES (to the day, not hour or minute) that occur BETWEEN startDate and endDate. Inclusive of those dates would be preferable, although not necessary. Example: (I know that these d...

Objective-C: Point of releasing a View

Hello I made a static mainmenu with a TableView. Sometimes it crashes because my Subview has allready deallocated a subview. Is also ok to release a View in the dealloc mehtod of the local object instead of that: [NavController pushViewController:self.AnotherView animated:YES]; [self.AnotherView release]; //This line into (void)viewDi...

UINavigationItem titleView position

I'm using UINavigationItem's titleView property to set a custom UILabel with my desired font size/color. Here's my code: self.headerLabel = [[UILabel alloc] initWithFrame:CGRectMake(0.0, 0.0, 400.0, 44.0)]; self.headerLabel.textAlignment = UITextAlignmentCenter; self.headerLabel.backgroundColor = [UIColor clearColor]; self.headerLabel.f...

Modal viewController dismiss button problem

Hi all, I'm creating a simple modal ViewController. I'm creating a nib with a button and on that button press calling a method to display modal viewController in which I'm creating the viewController and a button inside it like this. UIViewController *modalViewController = [[UIViewController alloc]initWithNibName:nil bundle:nil]; moda...

iPhone Regular Expression Capture Groups

Since Apple now appears to be rejecting apps that link to libicucore (such as apps that utilize RegexKitLite), what is the best way to get regular expressions with capture group functionality to work from within an iPhone app? Should one statically compile ICU or PCRE (perhaps using the RegexKit PCRE wrapper)? ...

Jittery scroll performance in UITableView after iOS 4 upgrade

I have some large images in a grouped UITableView. There's 1 row in each section which holds the image and there is associated header and footer text for each section about the image. I worked hard to get it to scroll smoothly is iPhone OS 3.x and finally succeeded. But... when I upgraded to iOS 4, that all changed. Now there is very jer...

iPhone app versions: release micro-updates often, or major updates less frequently?

I released a new iPhone app 5 days ago. Already it has received high ratings, and many downloads, so I think it can be quite successful. (It's currently ranked in the top 10 paid music apps.) What do you think is the best release strategy: Release many micro-updates, often. (Just 1 or 2 new features per update, as they are completed.)...

iPhone 4 incorrect screen size?

Could someone tell me why the following code would return Screen Size: 320.000000, 480.000000 on the iPhone 4? CGRect screenRect = [[UIScreen mainScreen] bounds]; NSLog(@"Screen Size: %f, %f", screenRect.size.width, screenRect.size.height); ...

Hide a ADBannerView. Is it ok to move it offscreen?

Hello, When the user changes screen, I want to hide the current ADBannerView . Is there a "right" way to do that? If I move it offscreen for instance, is it fine: I was wondering if it could keep serving ads while not being displayed and then I would break some Apple Agreement. Is it also OK to cover an Ad with a modal view? Thanks! ...