iphone

iPHone, How to calculate the passed time

hi, all, I want know the passed time that also is between two date, for example , dateTime1 and dateTime2 , I want a function like getPassedTime( time1, time2) the function result should be like '1 day 3 hours 12 minutes 10 second' or just '40 second' ... I know that the method 'timeIntervalSinceDate' of the class 'NSDate' can be us...

How the game will search for other online users and will display the list of all users ?

Hi all , I am asking this question as a small part of my question series regarding game programming . Refer this question as the main one . Now suppose I want to develop one small board game on iphone that is multiplayer . so how it will handle how many users are online and displaying them . Suppose it is an online multiplayer casin...

Hide/Show iPhone Camera Iris/Shutter animation

I am not able to Hide the iphone Camera shutter opening animation for my app. I am using UIImagePickerController to access iphone camera and using my own overlay controllers. Is there a way to remove the initial shutter(also known as Iris) animation as the camera starts. Thank You ...

iPhone 3G + iOS4 debug problems

Hello, I recently updated our test iPhone 3G with the latest version of iOS 4 to be able to test our apps on the new OS. I regret that I didn't read the forums because after the update the device's performance suffered a lot. However this is not a problem because the device still works. The problem is that when I try to debug our app th...

Problem with custom UIImagePickerController with SDK 4.0

Hi Coders, I'm trying to create own UIImagePickerController using Assets Library Framework from the latest SDK 4.0. Here's the code: -(void)viewDidLoad{ [super viewDidLoad]; groups = [[NSMutableArray alloc] init]; ALAssetsLibrary *assetsLibrary = [[ALAssetsLibrary alloc] init]; NSUInteger groupTypes = ALAssetsGroupAlbum; ALAsse...

Accessing Singleton object second times caused app to crash.

I have a a singleton class here is the code #import <Foundation/Foundation.h> #import "CustomColor.h" @interface Properties : NSObject { UIColor *bgColor; CustomColor *bggColor; } @property(retain) UIColor *bgColor; @property (retain) CustomColor *bggColor; + (id)sharedProperties; @end #import "Properties.h" static Properti...

UIActivityIndicatorView doesn't work on iPhone 4 with iOS4

I noticed in one of my apps that the activity indicator doesn't seem to work on an iPhone 4. It works fine on an old iPhone upgraded to iOS 4 just not on an iPhone 4. Does anyone know why it isn't working? ...

How one can I request someone to join the game and then visible to other users?

Hi all, I am asking this question as a small part of my question series regarding game programming. Refer this question as the main one. Now suppose I want to develop a game on iphone - a simple multiplayer board game. Suppose its a casino table and there is a table which is currently on (players are playing on) and someone wants to jo...

what type of network programming is necessary in iPhone online multiplayer game ?

Hi all , I am asking this question as a small part of my question series regarding game programming . Refer this question as the main one . Now suppose I want to develop a game on iphone - a simple online multiplayer board game. Suppose its a casino table. In the main question ChrisF has tell me of sort of Client - Server architectu...

why does MPMovieLoadState have state 5 ?

I find MPMoviePlayerController.h,there is enum { MPMovieLoadStateUnknown = 0, MPMovieLoadStatePlayable = 1 << 0, MPMovieLoadStatePlaythroughOK = 1 << 1, // Playback will be automatically started in this state when shouldAutoplay is YES MPMovieLoadStateStalled = 1 << 2, // Playback will be automatic...

iPHone, How to calculate the passed time ?

hi, all, I want know the passed time that also is between two date, for example , dateTime1 and dateTime2 , I want a function like getPassedTime( time1, time2) the function result should be like '1 day 3 hours 12 minutes 10 second' or just '40 second' ... I know that the method 'timeIntervalSinceDate' of the class 'NSDate' can be us...

Darshan Prajapati --> Playing Data from UDP packets in iPhone application

I am developing an iPhone application. Right now what I have to do is that I want to receive the UDP packets which contains the voice in alaw format and then simultaneously playing that data. So in my application I want to receive and play data simultaneously. Problem is how to play the alaw data directly? Any help will be appreciated.....

Core Data Beginner...

does someone know where i can find example to do that case ? 2 entities : Catalogue of books and Books. One relation to-Many between. I found many tuto to explain how to make appears A book of selected catalogue (tableview) but none for a "double" tableview which is simple i suppose. The first tableview will present all the book's catal...

how can i check object count and release that object according to it's retain count?

Hi!some time i release the particular object but still it shows Memory Leaks so which kind of condition should i give so that my memory related issue has been solved?that particular object is allocated in Application Delegate class and it's accessed from many View Controller so how should i remove that memory Leak? ...

iphone,where do i declare a global method that can called in all the classes

How can i write a global method that can be called anywhere in my iPhone App Can any one Help Please.... Thanx and regards Balu..... ...

Video not playing in ios4 ?

Hello Guys , I am playing an video from url using MPMoviePlayerViewController class and it is working fine in all version of 3.(3.0,3.1,3.1.2,3.1.3)but in iOS4 video is not playing ? Have any one track this issue ? thanks ...

recreating the ipad search bar in the contacts app

In the contacts app, the search bar is shown with a white background and it blends in well with the surrounding UI. The only style choices in Interface Builder don't seem to show a way to host just the search bar, but instead includes chrome around it to make it look slightly 3d. Is there a way to get rid of the surrounding chrome and ...

ModalViewController overlaps navigationbar even after setting its frame iphone

Hi all, In my application, I'm launching a modalViewController on rightbarbutton click of navigationbar. This modalViewController overlaps the navigationbar. I tried setting its frame but it remained the same. I want to display navigationbar even if modalViewController is still there. EDIT: I call the following method on navigationcont...

Reading PVRTC image color information for each pixel

How do I read the image color information for each pixel of PVRTC image? Here is my code extracting the integer arrays NSData *data = [[NSData alloc] initWithContentsOfFile:path]; NSMutableArray *_imageData = [[NSMutableArray alloc] initWithCapacity:10]; BOOL success = FALSE; PVRTexHeader *header = NULL; uint32_t flags, pvrTa...

iPhone in app purchase for charitable donations

Hello friends. I am developing an app for a registered charity in the United Kingdom and would like to touch base with you folks to see if any of you have experience with donations via in app purchases. The donations will likely consist of pre-defined amounts, such as: £1 £5 £10 £50 £100 My questions is: does Apple allow in app purc...