objective-c

does iPhone has a directory to store the file of mail?

HI, everyone, I want to ask a question about the iPhone application. I want to write a file management app for iPhone. However, I don't know the file basic operation of the iPhone. for example, when the user download a text file/png, where do the file stoer? And is it possible to get the file out of the store place and retrieve the data...

How to use Kal calendar Api to draw calendar ?

How to use Kal calendar Api to draw calendar like this ? If any one know how to do this please give a quick reply with code or any info on this topic source code of this API is here http://github.com/klazuka/Kal ...

know about the iPhone device whether it is old or new threw code

hello everyone, I have one problem,i want to know the code threw which i can know about the i phone device,whether the device is old or new(as Hardware point of view). Please some one help me. Thanks in advance.. ...

How to create global enum

Hi Guys, How to access enum through all classes. Let me explain: enum { BottomBackButtonNav = 0, BottomNextButtonNav, BottomSliderIncreaseNav, BottomSliderDcreaseNav, PageSwipeLeftNav, PageSwipeRightNav, NavFromThumbnailView, NavFromTOCView, } NavigationType; This enum is defined in my MainViewController's hea...

UIPopOverViewController doesn't load detail data in portrait mode.

Hi. I'm having a problem wiht the popOverController in portrait mode of an splitViewController. I have the common UITableView whit customer names so if you touch one of them his personal data are loaded in UITextBoxes of CustomerDetailView. It's working correctly on landscape mode, but in portrait doesn't. I debug step-by-step, and it...

Checking if UIGraphicsBeginImageContextWithOptions is supported

I'm working on an iOS app. It currently only works on iOS 4 since I use the following method on several occasions: "UIGraphicsBeginImageContextWithOptions". This method is only available in iOS 4 and therefor my app currently crashes/doesn't work on iPhone OS 3. Aside from this method there is no reason why the app should not work on iPh...

How to detect user changed wireless connection on iPhone?

I want to check the user whether using whether wifi/3G connect or not, how can I check this behavior? thank you. ...

sql is throwing Exception.

if(sqlite3_open([databasePath UTF8String], &database) == SQLITE_OK) { const char *sqlStatement = "select count(*) from mytable"; sqlite3_stmt *compiledStatement; if(sqlite3_prepare_v2(database, sqlStatement, -1, &compiledStatement, NULL) == SQLITE_OK) { while(sqlite3_step(compiledStatement) == SQLITE_...

how to keep track of webpage opened

Hi, Just wondering if there's a way to keep track of what website the user is browsing to via Cocoa or Webkit? Sort of like the TrackTime.app? Thanks ...

Route-Me \ CloudMade dragging problem

Hi, I'm using CloudMade on iPhone and I've got this really critical issue to solve. The problem is when the user moves the map up\down there is nothing to stop him when he gets to the end of the map. This way he can move the map forever and just see a gray view. How can I prevent the user from dragging the map when he got to its end?...

How to add a login view before a UISplitViewController iPad

I would like to show a login view before a UISplitViewController in my app. I am not sure how to do that as Apple docs regarding iPad says that UISplitViewController should be a root view controller of the app. ...

Can LocalNotifications be disabled by the user.

Hi, I want to use UILocalNotifications as a background timer for an app. Can this notifications be disabled by the user like remote notifications? If the user disables remote notifications for the app, are the local notifications disabled to? ...

How to Show Second View Before Loading data from server and Run Indicator While Loading?

Hi All, I made a player xib and go from the playlist xib to that one. The thing is that the player view has a bunch of data to capture and load. When you click the button on playlist to go to the player view, the player view WILL NOT be displayed until all the data is captured. I want it to go to the player view immediately and then sh...

Using substringFromIndex on NSMutableString

Hey all Why is substringFromIndex not working for my NSMutableString? Here code similar to what I have: NSMutableString *myString = [[NSMutableString alloc] initWithString:@"This is my String"]; [myString substringFromIndex:5 NSLog(@"myString = %@", myString); //will output This is my String If I use substringFromIndex on NSString...

How to implement the preview of a custorm file type in iOS's email attachment?

From iOS 3.2, application can be called to open specify files, lick .zip . we try to implement an application can open the zip attachment file in iOS, it works. But from iOS 4.0, apple provide a new file preview framework call Quick Look Framework. The default email application will open the preview of the file default. But the quick loo...

How to detect a UIImageView inside a UIScrollView

HI I have a UIScrollView In this scrollView i have added an UIImage ,UILabel,UIButton. I want to detect the double click of UIImage inside the UIScrollView. -(void) touchesbegin:(NSSet *)touchs withEvent:(UIEvent *)event { if([[touches anyObject]view]==??) { //MyCode on double tap of UIImageView inside UIScrollView }...

APN provider server in objective c

Is there any opensource APN provider server in objective C? Or can anyone suggest me the steps for develop one. ...

How to achieve T.E.D.D.Y. application like functionality in iphone?

Hello all, I want to create an application like this T.E.D.D.Y in iPhone. Any help regarding this will be very much appreciated. I am very confused where should i start from? Does someone knows any algorithm to achieve this functionality? ...

What are the Delegate methods of modal view?

Which delegate method will be called after dismissing the modal view? ...

"." syntax error comes while i am doing inner join.

const char *sqlStatement = "select s.id, s.no, s.sc p.na from table1 s inner join table2 p on p.id = s.id"; It gives an error that near ".": syntax error ...