iphone

For the iPhone, can you program for different languages?

For the iPhone, is it possible to program applications to translate words from a base language to any of several languages of various users. If so, how? ...

Where do I place the launch image "Default.png" in my iPhone app's project directory?

In the Apple documentation, it says... iPhone OS looks for a Default.png file, located in the top level of the application bundle. but I'm having a hard time figuring out how to get the image in that location in the bundle (I'm new to all this). I'm assuming my image will end up in the right place in the bundle when I compile ...

What is the proper location for a sqlite3 database file?

Hi, Everyone: I'm using a sqlite3 database to store app's data. Instead of building a database within program, I introduced an existing db file: 'abc.sqlite' into my project and put it under my 'Resources' folder. So, I think this db file should be inside of 'bundle', so at my init function, I used following statement to read it out: N...

Simple method to read XML from a URL - iPhone

I started doing when I reached to pull the XML data, both simple ways and XML data category overview example Someone who can help me here? possible. with links to some simple ways to do it. ...

Make staus bar visible without overlapping view

Hello, I have a tab bar with two views. In the first view the iPhone status bar is hidden using [[UIApplication sharedApplication] setStatusBarHidden:YES animated:YES]. When the second view is loaded, and the status bar is made visible again using [[UIApplication sharedApplication] setStatusBarHidden:NO animated:YES] it overlaps the vi...

Design-time properties in IB?

Coming from the .NET world into ObjC and iPhone development, I'm used to providing design-time support for my UI classes. For example, say that I have a custom button class with a color property. I want to be able to set this color in design time from IB. How can I accomplish this? Is it even possible? Worth the effort? ...

How to get the location (x,y) of a CCLabel that is a child of a CCScene?

(learning Cocos2D) After creating a CCLabel and adding it to a CCLayer like this: //From HelloWorldScene.m // create and initialize a Label CCLabel* label1 = [CCLabel labelWithString:@"Hello" fontName:@"Marker Felt" fontSize:10]; label1.position = ccp(35, 435); // add the label as a child to this Layer [self addChild: label1]; Ho...

How to track the touch vector?

I need to calculate the direction of dragging a touch, to determine if the user is dragging up the screen, or down the screen. Actually pretty simple, right? But: 1) Finger goes down, you get -touchesBegan:withEvent: called 2) Must wait until finger moves, and -touchesMoved:withEvent: gets called 3) Problem: At this point it's danger...

How to set the initial orientation of an animated UIImageView?

I am programming a gauge display for an iphone application: a centered needle UIImageView against a fixed background UIImageView. I am new to iPhone programming, and don't know much about CoreAnimation, but with looking through examples and fiddling with my anchorPoint setting and the position of the needle image against the background...

Is there a way to detect non-movement (touch events) ?

Is there a way to detect a finger's non-movement by using a combination of UITouch events? The event methods touchesEnded and touchesCancelled are only fired when the event is cancelled or the finger lifted. I would like to know when a touch has stopped moving, even while it is still touching the screen. ...

How can I create a sample SQLLite DB for my iPhone app?

I'm diving in to iPhone development and I'm building an iPhone app that uses the Core Data framework and my first task will be to get the model setup with a view that will display it. Thus far, I have the model defined and my Managed Object Files created, but I don't have a database with any sample data. What's a quick way to create...

How to have a scrollview take the space between the uinavigationbar and the uitoolbar

Hello, I have a scrollview that I had to the view of the view controller pushed to a UINavigationController. My navigation bar is opaque. However, the scrollview seems to keep size of the whole parent view. I would like the scrollview to have the size of the space between the toolbar and the navigationbar. Is this possible or do I hav...

Problem of Loading Xib with Tab bar Controller

Hello, I am using two xib one without tab bar and another with tab bar controller. In starting i load the xib without tab bar-navigation bar then flow are working.But if i load a xib with tab bar Controller -navigation bar then our all view slide bellow and half tab bar are not showing. So Please give some code how to use tab bar cont...

How can I get the title of the selected UISegment in a UISegmentControl?

The class of the selected segment is shown as UISegment, which I can't find a class reference to. Surely there is a way to access the title associated with the selected index? ...

Available memory for iPhone OS app

Is there a function or constant defining the amount of available memory for an app in iPhone OS? I'm looking for a device-independent way (iPod touch, iPhone, iPad) to know how much memory the app has left. ...

iPhone: Is is possible to determine wheteher ViewController is presented as Modal?

Is it possible to check inside ViewController class that it is presented as modal view controller? ...

Adding single row one by one in tableview from core data of iPhone

I am working on RSS reader code where articles get downloaded and are viewable offline. The problem is only after all articles are downlaoded the tableview containing headlines gets updated. Core data is used. So everytime NSobjectcontext is saved , [self tableview updatebegins ] is called.The table is getting updated via fetchcontroller...

How can I fix this NavigationController and UIToolbar offset issue in Objective-C?

I'm adding a couple of buttons to an already-existing NavigationController. The two buttons are added to a UIView, which is pushed onto the NavigationItem. The buttons stop and reload a UIWebView. Problem is that there's a slight offset issue that is making it all look pretty ugly. I wish I could set the UIToolbar to transparent or c...

UIView animation

I have a UIView(first view) on top of which I would like to display another UIView(second view). I display the second view using animation which causes the second view to be displayed for about 3/4 of the iPhone screen. The first view is visible underneath the animated second view. I would like to make changes to the first view as the se...

Do iphone push notifications send the actual sound data to play, just a filename, or is it handled by the app?

And, does it cache it locally? I ask because I am wondering if it's possible to change the sound of a push notification via SSH, replacing an app sound. My question is specifically about how the API for push notifications works. Does it send a .caf (aiff) binary file for the phone to play each time? ...