iphone-sdk-3.0

Currency symbol for users current locale

In my app I need to display the appropriate currency symbol for the user's current locale. I'm not displaying currency values, just the symbol. Any ideas? ...

Quartz 2D vs OpenGL ES Learning Curve

Hi, I have been developing iPhone Applications for a couple of months. I would like to know your views about the Quartz vs OpenGL ES 1.x or 2.0 learning curve. You can tell your perspective. My Questions are *I am a wannabe game developer, So is it a good idea to first develop in quartz , then move on to OpenGL ES or does it not mak...

iPhone motionEvent issue

I am trying to detect when the phone is shaken in my app so in my ViewController classs, I added the following code: -(void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event { NSLog(@"motionEnded"); if (motion == UIEventSubtypeMotionShake) { NSLog(@"The phone was shaken!!"); } } It worked a few times but essentially...

Change title of MFMailComposeViewController

I'm using MFMailComposeViewController for in-app email in my app, but I'm not able to change the title. As default it's showing the subject in the title, but I would like to set the title to be something else. How can I do that? I've tried: controller.title = @"Feedback"; but it didn't work. Here's my code: - (IBAction)email { NSA...

Core Data with NSXMLParser on iPhone saving object incorrectly

Hey Folks, I'm new to Objective-C, XCode and iPhone development in general and I'm having some issues with Core Data and NSXMLParser. Having followed Apples' tutorials SeismicXML (for NSXMLParser) and the Core Data on iPhone tutorial I've ran into an issue when assigning values to my Managed Object Models' entities properties. To expl...

calling functions in other classes when UIButton is hit

Hi, I'm using a UITabBarController to keep track of different views for an app. In one view, the "quiz controller", I have the user select numbers from segmented controls and then I store their answers in an integer array. At the bottom is a 'submit' button which, when hit, should call a function in another view to display results using ...

sound and Nstimer stopped when iphone is in deepsleepmode?

I am creating an application in which I'm using nstimer and avaudioplayer to play sound,but both sound and timer stops when phone is in deep sleep mode.how to solve this issue? here is the code to play audio -(void)PlayTickTickSound:(NSString*)SoundFileName { //Get the filename of the sound file: NSString *path = [NSString stringWithFo...

Nesting Custom Classes/XIB's with Interface Builder

I'll try to make this as short as I can. I wrote a custom class that extends UIView with a couple of IBOutlet properties, and it has a XIB associated with it where those IBOutlets are linked to. I then want to take that class, embed it in some other XIB (for example, a table cell), and just have it work. It seems that when I embed tha...

How to make custom TableViewCell with initWithStyle after 3.0

I am trying to have custom TableViewCell with initWithStyle, since it says initWithFrame is deprecated after 3.0. Everything worked fine with initWithFrame before. Is there any tutorials or sample code available for this? Thanks. ...

Are there incremental updates to the iPhone SDK?

Hi! I've only found the full download (iPhone SDK 3.1.2 with Xcode 3.2.1) on the developer center. I haven't been able to find something that will update me from 3.0 to 3.1.2? If I already have the 3.0 SDK do I still have to download the full 2.5GB version. Thanks! ...

The best way to implement live(search as you type) contact search?

Hi guys, I'm trying to implement a better live(search as you type) contact search in my iPhone app. After doing some real device testing if found my current (non-threaded) implementation is just too slow. As far as I know there is no spotlight API for the iPhone. So I think the solution will have to be threaded so that it updates the...

3GS specific binary

I want to build my binary just for 3GS as it contains NEON assembly code, my app only works on 3GS. When I upload the binary to iTunesConnect, it rejects the binary saying that it should be compatible with armv6 as well. Is there any build setting that I can use so that I have a binary which iTunesConnect happily accepts and which runs o...

Rotating buttons on UIToolBar in an iPhone app

Hi, Is there any way to rotate the buttons on a UIToolBar as the camera application does when you take a picture in landscape? When the user rotates the iPhone I want to keep the toolbar on the same place and rotate the buttons so they don't stand sideways. thanks in advance! ...

iPhone UISearchBar & keyboardAppearance

When the keyboard appears, I want to set the keyboardAppearance = UIKeyboardAppearanceAlert I've checked the documentation and it looks like you can only change the keyboardType. Can this be done without violating any of Apple's private API's ? ...

Question for Printer connection from iPhone and for more than 5 tabs in UITabBarController

Hi All, I am developing an application where I need to connect to the bluetooth printer via iPhone where I generated a ".txt" file which I need to print. So is there any information available which will help me in this. A sample code will be a great help. Also in the same example I am having 8 tabs, out of which 4 are shown in "More" s...

One to Many relationships iPhone - NSPredicate core data query

I have a have a number of calendars, which each have a number of events. I would like to find all the events for a calendar where date > x. My method signature looks like this -(NSArray*)eventsForCalender:(Calendar*)calender StartDate:(NSDate*)start endDate:(NSDate*)endDate; I added an Event to a calender like this, but I don't have ...

iPhone: optimized drawing in quartz

I have created a CG context that is 800 pixels wide and 1200 pixels height. I have created CGLayer over this context that has been transformed (scaled, translated and rotated). So, at some point, as the CGLayer is bigger than the context and has been translated, rotated, etc., not all parts of this CGLayer falls inside the context. See n...

TabBar and selecting the default TabBarItem

Hi all, In my iphone application I put a UITabBar (not using UITabBarController) in the bottom and put four TabBarItems(created IBoutlets -so that i'm able to track which item is selected), How can I set 1 TabBarItem is selected when the view is loaded (by default). Thanks in advance Shinto ...

Grouped style setting not taking effect from IB, UITableView

I've created a table view in an iPhone app using Interface Builder (IB). My table style is set to Grouped, and displays that way in IB. However, whenever I build and run, it shows up as a Plain style in the simulator. I have another view set to Grouped and don't experience this problem. Has anyone run into this problem before? The re...

How to keep an object in view of a scrollview while animation moves the object offscreen

Good day all; I have an UIImageView that I animate around a large UIView. The UIView is contained within a UIScrollView. Now, with small movement animations of the UIImageView within the UIView, if it passes a certain thresh hold (gets close to the edge of the screen), I will manually scroll the UIScrollView to re-center the UIImageVie...