iphone

Is it possible to run a task periodically in Background - iOS 4

Hi, I want to poll the location from GPS in the background. So we used a NSTimer and performed periodic checks in the timer tick. In other words, can we schedule NSTimer while the app is in Background? Thanks in advance ...

call safari in iphone program

i am working on an application in which i needs to call safari when i click on a button..... please tell me how to do this should i create a new view for this ? kindly help.... please also tell about importing messagebox and callmanager if possible..... (not talking about sending msg or call from my app ...know that is not possible... i ...

MFMailComposeViewController crash on addAttachementData

Hi, I have an issue with sending an e-mail with the app logs(just a few times I've encounter this - when the logs where bigger).Could someone please tell me on what should I focus to solve this situation?Because I've no idea what could cause this.The app crash when sending a log which has 264 kb and the device frozen.After restart, I wa...

controlling user in iphone

Hey guys, I don't know anything about how to control the user for accessing music (I have 80 to 90 songs in my application) but I want the user to access only 3 songs when the user downloads my application. These 3 songs must be available for one day only - after that it is locked for the user (the user didn't have permission to access ...

Default.png file is not being loaded on device.

Hello, I am trying to display Default.png image when application starts. So user wont have to see that black screen. But the problem is its working fine on simulator but on device its not being loaded and black screen is being shown before app loads. What could be problem? Any help would be appreciated. ...

Modifiying Nib file without Interface Builder

I was wondering if there is any way to directly manipulate the XIB/NIB files without the use of Interface Builder. I know its difficult but is there any way. Can you please tell me how can I do that or the internal structure or the documentations available on it? And will it be feasible or better in any other way. Regards, Vivek ...

Problem with startMonitoringSignificantLocation/stopMonitoringSignificantChanges

Hi, I am developing the application that is using phone location. I am using the following approach. I am using startUpdatingLocation when my application is in foreground, and when my applications goes in background i use startMonitoringSignificantChanges.. it will notify me once the towerID is change. I have problem when user go in t...

extract channel titel from RSS feed using NSXMLParser

Hi, how can I extract the titel of a RSS channel while not getting in conflict with the title element of a news item? If an element was found: - (void)parser:(NSXMLParser *) parser didStartElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName attributes:(NSDictionary *)attributeDict { ...

Capturing UITextView data in an NSString

Hey all, I am trying to accomplish something very simple yet getting an error and it's driving me nuts. here is what I am doing: Function 1: -(id)initWithText:(NSString *)text1 :(NSString *)text2 :(NSString *)text3 :(NSString *)text4 :(NSString *)text5 { here I do the assignment. I have not initialized the NSString date, project...

how to convert an int to NSString?

I am converting an integer into String. I did a search but here but it is not useful. int i; NSString *str; str = [NSString stringWithFormat:@"%d",i]; [myString appendString:str]; It is not working throwing an error. ...

How to find delimiter in objective C?

I have a string : NSString *s = @"a+v+c+d"; Where '+' is the delimiter. I want to store each a,b,c,d in array. How can it be done in objective C? ...

how to display text in UIWebVIew

hi all, I have a NSstring which stores the html text in it. i want to display this string in uiwebview. i am using this [self.webView loadHTMLString:mystring baseURL:nil] i know this is wrong. can anybody tell me how can i display my nsstring in uiwebview? ...

When to release detailsViewController

Hi everyone, I have RootViewController and DetailsViewController in my iPhone application. I use Allocations tool to monitor my memory consumption, and I have a question. When my app starts it takes around 4Mb memory, when I select item in RootViewController it loads UIWebView in DetailsViewController and memory rise up to 10Mb, after...

custom image in UIButton

hi all. i have a problem with the uibuttons . i cant scale image to fit their frame . please any advice ...

iPhone - why the status bar is hiding when playing movie using MPMoviePlayerController

One good feature in iOS 4 is that we can resize the movie player. I'm using MPMoviePlayerController to play a video file. I'm resizing the view to show it in half screen only. When video is being played, the status bar is hiding and it shows white box in place of status bar. When video completes playing, its not showing status bar again....

Upload image from iphone to facebook without dialog

Hi, i want to send image from my iphone to facebook of my account without showing any dialog (in fbconnect there is dialog) . I want a simple way to just test whether it is uploaded in the facebook are not. I tested with twitter api send message from my iphone and its work fine its few lines of code, I pasted below NSMutableURLRequest...

UIImageView Overlapping

Hello all I Have multiple UIImageView in my screen. It's moving around a screen using accelerometer. I set boundary of all UIImageView. But now problem is that, all image view is overlap each other. I want to stop overlapping of that while i used accelerometer functionality. Please help me on this problem, Thank you in advance. ...

Create a library in iPhone project

Hi, I have a problem with my iPhone program. I have imported a folder into my project. I use the class into the folder like the other class. But now i want create a library with these folder because is a external project and i want use it in other project. There are a solutions for these problem? Thanks so much. ...

Why do I get "Invalid receiver type 'NSInteger'"?

Probably a simple question: Why do I get an compiler warning for the following objective-C code? //_classificationView.tag is a NSString CGFloat imageWidth = [_classificationView.tag floatValue] * 14.0; And why does it say something about NSInteger? Thanks for answers! Dennis ...

how to open dashcode in iphone sdk?

i have watched a site which has taught iphone application using dashcode.it says dashcode is a part of iphone sdk but i cant find how to open it?can anyone tell how to open it? ...