iphone

Is this a bug in plist or Xcode?

G'day All If you create a date item in the plist editor of Xcode or Apple's standalone plist editor you get something of the form <date>2010-05-29T10:30:00Z</date> which is a nice well formed ISO date at UTC (indicated by the "Z"). Because I'm in timezone UTC +10 when that's read into my app & then displayed I get 8:30 PM out, still goo...

how to change the date format in the objective-c

after selecting the date from the date picker, i am getting the date in the format in view like yy/mm/dd . i want to the date format in my view like mm/dd/yy. how can i do this. ...

Webservice call

Hello, i want to call two Web service recurcive. is this anyway to call two webservice. (i.e) first webservce call after completed second webservice call. Thank you, ...

iPhone web views - detecting short phone numbers

G'day All Most Australian phone numbers are 10 digits with the 1st 2 optional if they're a local area code. For those setting... viewer.dataDetectorTypes = UIDataDetectorTypePhoneNumber; on a web view works. We also have a range of 6 digit phone numbers (usually written xxx xxx or xx xxxx) which aren't being detected in my app. Is th...

Programatically determine dimensions of image files in bundle

Hi, I have a large number of image files in my iphone app bundle (~3000) and I want to determine the dimensions at runtime rather than store this data in the database or an xml manifest for the images. Is there a way to do this programatically? ...

Removing time from date format

Hi, I am developing an application in that i have used DatePicker to pick the date but it gives me date with time .I have converted that format into string, now i just want date from that. How should i do that.Plz suggest me something. Following is my code Snippet. NSDate *selected =[datePicker date]; NSString *dateString = [NSSt...

UItableView Reload Problem

Hello All, I am using a UiTableView in our application.We have two tabs in controller one is add to shopping list where i add more than one items in our shopping list in database,other one is shopping list which shows items for shopping. The problem is that when i add items from shopping list tab then items are successfully added in da...

i want to add the undo button in my iphone app, how can i do this ?

i am using he quartz for drawing the image in my view and now i want to add the undo button in my toolbar button on myipad app. what is code or any example of doing this. ...

Select sound files + iPhone SDK

Can we select sound files from iPhone with a particular length? ...

iphone getting hours/min/seconds app crashes.

i have this code in my overridden drawRect method NSDate *date = [NSDate date]; NSCalendar *calendar = [NSCalendar currentCalendar]; unsigned int unitFlags = NSHourCalendarUnit|NSMinuteCalendarUnit|NSSecondCalendarUnit; NSDateComponents *comp = [calendar components:unitFlags fromDate:date]; NSInteger h = [comp h...

Iphone Movement in particular direction with particular speed

How can i find when iphone moving particular direction (i.e X axis) with particular speed using its UIAcceleration values? Can anyone help me ? Thanks in advance......... ...

Resize a UITableView to accomodate a translucent header before it becomes visible

I have a UITableView inside a UINavigationController. The navigation controller uses a translucent navigation bar--as a result, my table view is displayed behind the navigation bar and it's height includes the height of the navigation bar. However, I want the table view to appear below the navigation bar (as it would if it were not tra...

how to store cgrect values in nsmutablearray

how to store cgrect in nsmutablearray and retrive them ...

How can I move the clear button in a UITextField?

For some reason, when I add a UITextfield as a subview of the contentview of a tablecell, the clearbutton does not align with the text typed in the field, and appears a bit underneath it. Is there any way I can move the text of the clearbutton to stop this from happening? Thanks for any help, ...

MKMapView: getting latiude and longitude for a point

Hello. I'm developing an iPhone application and I want to know the location on a MkMapView where the user has touch. I have a MKMapView that fills the screen. When the user touch over the map, I need to know the location of the point the user has touched. Is that possible? Thank you. ...

How can I find a city and show it on a MKMapView?

Hello. I'm developing an iPhone application to search cities on a MKMapView. The user specify a city and then it show its location on a MKMapView. Is that possible? Thanks. ...

Are there any examples for how to draw a line chart in Core Plot on the iPhone?

Is there some sample code or a tutorial out there about how to draw a line chart using the Core Plot framework? I can't find anything using Google. ...

drawRect is not executing

I have ClockViewController.h and ClockViewController.m inherited from UIViewController. Also 2 other files ClockView.h and ClockView.m inherited from UIView. In Interface builder i have selected Class "ClockView" for the clock, but my drawRect is not executing. I am calling it via setNeedsDisplay from a timer function. even the timer fu...

Problem with saveToFile

Hi, I have a problem with a NSData writeToFile. I have implemented the code below but i have an anomaly. When i run my program on the simulator, the new file is created and the informations are stored; when i build the app in my device , the file isn't created. The debug don't give me any error but don/t save anything. Can you help me? T...

Looking for the log file on iPhone

Hi, I have a problem. I have the code below for save a data on file. I build my app on the device, and run. The result variable is TRUE, but i don't find the file on the my iPhone device. Can you help me? Thank and sorry for my english XP -(void)saveXML:(NSString*)name:(float)x:(float)y:(float)z{ NSMutableData *data = [NSMutableD...