iphone

Wifi connection doesn't stay alive when asleep, with iOS4

Knowing that iOS4 support wifi stay alive in asleep is really happy thing. However I got some different experience: I've got 2 iPods, iPod 2nd gen & iPod 3rd gen. Both updated to iOS 4 beta. iPod 2g can stay wifi on in sleep while iPod 3g always disconnect wifi in sleep. I ping both of them while they're in sleep mode, only iPod 2g keeps...

XCode, iPhone Project an SVN

Dear stackoverflow Users, while coding a little iPhone App with a friend, we decided to use Subversion to share the code. While doing that, we found some small annoyances but I#m sure they are a result of our lack of experience with iPhone Projects and SVN. While this is only a fun and learning Project, both of us have there own provisi...

Replace a char into NSString

Hi all! I want simply replace all occourrencies of "+" with a blank " " char... I tried some sample listed here, also used NSSMutableString, but the program crash... what's the best way to replace a char from another?? thanks ...

Default iPhone template.

The default iPhone view template has code as follows { // Override point for customization after app launch [window addSubview:viewController.view]; [window makeKeyAndVisible]; return YES; } isnt there a memory leak here? shouldnt it be { // Override point for customization after app launch [wi...

cocos2d game development

Hi All, Iam new in cocos2d game development, iam creating a game were a birds fly in the sky and there are obstacles which make bird crash when they collide with each other. Now the problem is how do i change the scene from one scene to another which looks like bird flying continuously in the sky? There is something that make object f...

Adding icons to the springboard

Hi, I have been trying to have my iphone app create it's own springboard icons (like safari does for bookmarks) but i'm not sure how to do this. Googling gives me unrelevant information about this topic. Can anyone point me in the right direction? Thanks ...

NSFetchedResultsController and my TableView structure

I have a tableView controller with two sections. The first section has a couple of input fields and is not really displaying core data. The second section displays items from a database saved with Core Data. I have an NSFetchedResultsController and I serve up data for cellForRowAtIndexPath and didSelectRowAtIndexPath as follows. Fo...

Transaction comes back after finishTransaction: has been called on it

I am using in-app purchase for an iPhone app. I have a class that acts as SKProductsRequestDelegate and SKPaymentTransactionObserver, and it's all working fine in the currently released version available on iTunes. However, after recently adding a new non-consumable product and testing it within the Sandbox environment, I'm now encounte...

MPMoviePlayerController & iPhone OS4 issues

Hi I've been developing an iPhone using xcode 3.2.2 and using 3.O as my base sdk. Recently I upgrade xcode to the latest version. As I understand from reading posts on here I've found out if I set my base sdk to 4.0 and my development target to Os 3.0 my app will run on devices running Os 3.0 and upwards. I've been using MPMoviePlay...

How to properly forward UITouch events in responder chain?

Hi there, I'm struggling with following problem. I'm having a view controller with scroll view. With this scroll view, user should be able to swipe through set of "pages" - like in apple's weather app, so nothing uncommon. Then each "page" within the scroll view is table view, showing a list of items. And here I'm getting into the probl...

NSDateComponents returns a different Seconds value in iPhoneOS 3.1.3 compared to iOS4

I use this method to turn a time interval into a string of the form MM:SS NSTimeInterval testTime = 60.0; // for example NSCalendar *sysCalendar = [NSCalendar currentCalendar]; NSUInteger minuteAndSecondComponents = (NSMinuteCalendarUnit | NSSecondCalendarUnit); NSDate *intervalDate = [NSDate dateWithTimeIntervalSinceNow:testTime...

Like query in sqlite

NSString * strSearchSql = [NSString stringWithFormat:@"SELECT pdf_id,pdf_name,page_no,pdf_image,pdf_text FROM search WHERE pdf_text LIKE '\%%@\%'",strSearchString]; In This Query i got the String like given below SELECT pdf_id,pdf_name,page_no,pdf_image,pdf_text FROM search WHERE pdf_text LIKE '%@' I want like this SELECT pdf_id,p...

ABPersonViewController and hiding the Cancel Button

ABPersonViewController is by default showing a "Cancel" button in the right button bar position. How would one go about hiding/clearing that item? Obligatory code sample follows: ABPersonViewController *picker = [[[ABPersonViewController alloc] init] autorelease]; picker.personViewDelegate = self; picker.displayedPerson = aPerson; pic...

iPhone iOS 4.0 Camera FigCreateCGImageFromJPEG returned -1

Hi, Since I updated to 4.0, when I take a photo with my App using UIImagePickerController I get the following error output: * ERROR: FigCreateCGImageFromJPEG returned -1. Input (null) was 711733 bytes. I still get the image returned and can continue as normal, but does any body know what and why I get this error. I also get the fo...

ApplicationWillTerminate in iOS 4.0

Hi, The applicationWillTerminate delegate method is not getting called in iOS 4.0 When I hit the Home button I am seeing the applicationWillResignActive and applicationDidEnterBackground delegate methods getting called. - (void)applicationWillResignActive:(UIApplication *)application { NSLog(@"Application Did Resign Active"); } - ...

Downloading iPhone SDK now that iOS is out

I need to develop a simple iPhone application, but the only Mac I have access to is running Leopard. This is no problem, I don't need to make an iOS 4 application, iPhone 3.2 will suffice. I problem is the SDK download has been removed form Apple's website. I cant find it anywhere! Is there anything I can do??? I really don't want to u...

Issues transferring data from one view to the next

Hi, I'm building an iPhone app, and am just wondering what's the best way to "send" data from one view to another? For example, if I have a UITableView full of information (table.data), and when pressed I show a "detail view" and want to give the user the option to open up a URL shown in the "detail view" in an in-app web browser, how d...

i have inserted textfield into table view through custom cell now how to get the data from the textview

hello i am having table view and in that table view i have put text field on each cell, now how to get the data from the cell , data is in the textfield.. ...

View Controllers in iOS

How does the application identify the primary view controller, to pass messages like shouldAutorotateToInterfaceOrientation ? ...

PickerView for date and time

I have used uipickerview from interface in my application.But it is not selecting the current date and time.Please,help me. Thanks ...