iphone

Problem with CAGradientLayer in a custom UIView within a UITableViewCell

Hi All. I have a somewhat special situation that I need help with. I have a CustomView which I am placing in every UITableViewCell in my UITableView. No problems there. Within my CustomView is a UILabel which displays some text given to it. Depending on the length of the text, the width of the CustomView grows/shrinks. All fine. The p...

I have an exact string as say "November 4, 2010" and I want to compare it with today's date in iPhone?

How can one convert a string "November 4, 2010" and not "MMMM d, YYYY" to NSDate for comparison? ...

Remote Control Event Causing iOS to Terminate Background App

My app plays background audio using AVAudioPlayer and receives remote control events from iOS. Everything works fine while audio is playing, but if audio is paused and my app is moved into the background, something odd happens. If I use a bluetooth device to resume/unpause the audio after 10 minutes, iOS terminates my app with the foll...

iPhone vs website development times for website style app

I build websites for a living and have a very accurate way to cost them. I am being asked to price an iPhone app for viewing real estate properties that is virtually a website on an iphone. I need to know roughly how much more/less it would take to build. Here are the screens. Home page View all houses (about 20) Click on house for de...

iOS Default.png status bar not drawn over

This is probably something simple but I'm having a problem with my Default.png file. I created it using the XCode organizer to take a screenshot and having it assign it as the Default image. According to this post (Best way to create Default.png image for iPhone app) iOS is supposed to draw the real status bar over top of the status ba...

Weird SIGABRT (unrecognized selector sent to instance) when using UIAlertView

I've been bashing my head in with this one for the past half hour, so I thought I'd ask my friends from Stack Overflow for some wisdom. I've got a tab bar application with a view controller at the root, and passing off the views to other xibs. I created a custom XIB and added its view controller class (MoreViewController) as an External...

Android or iPhone OS - Programmatically enabling/disabling certain functionality

Hi all, I asked this a while back and didn't get anything useful. I'm hoping now that Android has advanced a few releases, that there will be more options. Here are the things I'm trying to accomplish: Prompt for a PIN when you uninstall a particular app. This would have been set at install time by the user. Disable certain services (...

How to make C code to update Obj-C view controller?

Hi there, i have some C code that can NOT be ported to Objective-C but it can be compiled to run on an iPhone. Now, if i want this program to have a nice GUI, how can i let it update an objc UIViewController class outlets bound to a NIB i created with interface builder? Can you please give me some (possibly full) example to understand th...

Images in iPhone app

Hi, I am creating a multilayered iPhone app using a navigation controller and the app includes a lot of images in every layer. I was wondering if it is a good idea to use a SQLite database to store all the images and extract them to the page when needed or should i just add all the images to the resources folder and pull them into the ap...

How do you create an animation like the iBooks app's moving bookmark?

When you tap the bookmark, it slides down or up smoothly. As it slides up, it disappears as if behind the view directly above it. I know how to animate changing the frame of a view, but I don't know how to make it disappear like that. (I don't want to resize the UIImage, just slide the UIImageView up and out of sight.) I figure I need a...

App stalls - no crash, no error

It is worth noting that this part of the app (this option from the main menu) was working perfectly before. I then programmed the next option from the main menu, and now this one is not working anymore. I know the code I've written works, but there is something wrong with either the class or the xib, because it worked when I switched it...

Help with memory problem on iOS/iPad

Hello - In my app, I have a bunch of different image packs to download. The images are downloaded from my website one by one. The packs contain anywhere from 100-1500 images and each image is about 100KB-200KB. When downloading the images, I have a method that selects the images to download, then I have a second method that does the act...

iPhone GCC / LLVM GCC or LLVM?

Im asking the experts here... Does anybody have made some performance test about which compiler is the best for iPhone apps? Since we have the choice between: GCC 4.2 LLVM GCC 4.2 LLVM compiler 1.5 Im wondering which of the 3 offers the best performance... I've done some quick test myself but haven't found much difference? Which ...

How to build and install yajl-objc on iOS

Hey I am trying to get http://github.com/gabriel/yajl-objc to work on iOS. It says to "Add the YAJLIOS.framework to your project" but I am not sure how I can get/build YAJLIOS.framework Thanks! -Ray ...

[iPhone] can I create movie manually?

I want to create a movie using objective-c, is it possible? or have to use the camera related things? [Edit]In fact, I want to know is there any API to create a movie, I want to show some pictures in the movie, so I cannot use camera related things. ...

presentModalViewController inside UIViewController class

View *view1 = [[View alloc] init]; [self presentModalViewController:view1 animated:YES]; The code above works when connected to a UIButton. It does not work upon launch of an application by putting it in the viewDidLoad method. I want to run this upon launch. Thanks in advance. ...

Reload the view in iphone (in viewWillAppear)

I got a little app that has a button whose click is handled via - (IBAction)click:(id)sender { } Now, what I want is after click() runs, I want the view to refresh/reload itself, so that viewWillAppear() is re-called automatically. Basically how the view originally appears. Of course I can call viewWillAppear manually, but was wonde...

If an app works on one iPhone, should it work on all phones?

Hello, I'm testing my app on an iPhone 4 and iPhone 3GS. It works perfectly on the simulator and the iphone 4 but crashes after several mins of use on the jailbroken 3gs. On the iphone 3gs, the only apps i've installed are TetherMe and SBSettings. Can i just assume that the app crashes due to the phone being jailbroken? ...

iOS: Navigation Controller title bar shrinks in landscape mode when compiled, but not in Interface Builder.

I'm trying to make an iPhone SDK 4.1 app, and I'm having some trouble with my Navigation Controller. When I set my app to portrait mode, everything looks like it should. However, when I set the initial orientation to landscape in my plist file and add the shouldAutorotateToInterfaceOrientation function to my primary view controller, the ...

Once an application is available in the App Store, is it possible to change the developer/seller account?

We are developing an app for a client who is currently in the process of creating their own Apple account. The problem is they got started with the process late, and we need to submit the app ASAP for review. Has anyone had any experience with changing the seller account after an app has been approved and is available in the App Store?...