iphone

iPhone - allow landscape orientation on just one viewcontroller

Hi I have a navigation-based application in which I would like just one of the viewcontrollers to support landscape orientation. For that viewcontroller (vc1), in shouldAutorotate, I am returning YES for all orientations and in the other controllers I am returning YES only for portrait mode But even then if the device is in landscape m...

a problem when disable Show selection on touch of UITableview?

i use IB and dis select Show selection on touch but it still show blue highlight on cell that selected ...

How to code for GPS Application?

Hi i m going to build up a GPS based application in which i want to locate the place with altitude and latitude of a person who is using GPS application. Please suggest me tips how to start and how to code for that. Aman Gupta ...

Add a UILabel in iPhone

Hi all, I have a tableView which displays a list of songs, when i tap on any one it gets played. -(void) PlaySelectedSong:(id) sender{ Song *aSong=[aCategory.Items objectAtIndex:appDelegate.selectedSong]; NSString *content1=[[NSString alloc] initWithFormat:@"http://192.168.50.108:8888/%@",[aSong.Link stringByTrimmingCharactersIn...

Is there any cost for using Push Notification Service?

Is there any cost for using the Push Notification Service? I know it requires using my own server to send notifications, but the signals are passed through an Apple server. There are no server transfer fees? ...

viewDidAppear: not firing under certain conditions?

I have the following items in my app nib: the usual: file's owner, first responder window, delegate View Controller "a" View "b" UIScrollView "c" some other stuff in "b" In my AppDelegate applicationDidFinishLaunching, I do this: [window makeKeyAndVisible] [window addSubView:a.view]; create a view controller "d" create a naviga...

Fastest / most efficient way to draw moving speech bubbles on screen - CoreAnimation, Quartz2D?

I am adding some functionality to an iPhone app, and could use some help in picking the fastest / most efficient / best practice approach for solving this problem: At the upper-half of my screen, I have speech bubbles (think comic book) that are UIImageViews translating across the screen (dynamic x & y position). It is a UIImageView bec...

reading an array

I create random numbers using the following code and store them in an array. NSMutableSet *aSet = [NSMutableSet setWithCapacity:6]; while([aSet count]<=6){ int Randnum = arc4random() % 12; [aSet addObject:[NSNumber numberWithInt:Randnum]]; } NSArray *arrayOfUniqueRandomNumbers = [aSet allObjects]; Now, I need to read the ...

setNeedsDisplayInRect redrawing entire view when using CATiledLayer

Hi all, this is my first time posting so please excuse any lapses in stackoverflow etiquette. I haven't found any example code or any questions that address the problem I'm having, so hopefully someone can shed some light on this. I'm using Quartz and I have a CATiledLayer on which I have drawn several boxes you can click on. When y...

Xcode Window Layout: How do I open all files in the same window?

Hello, I have problem with my Xcode window layout. The Group files on the left side is split and when I open the file it open's in a separate window. I want to open the files in same window attach to the group. Please let me know how to do this. Thank You. ...

How to create string property for each address book record?

Hi, I want to store network carrier as a string (e.g. AT&T) for each contact in address book. I found a method addPropertiesAndTypes for creating a custom property. But I am not able to find any proper example to do this. I am using following code to iterate through contact book records: ABAddressBookRef addressBook = ABAddressBookCr...

How to save Core Data after users update software?

Hello guys, As far as I know, the Core Data store is stored in the application's documents directory. If the user updates the application through App Store, all the data will be removed, right? Can I save data to another place? Thanks ...

How to disable "more" cell while getting data ?

Hi all, I am doing some work on uitable view in that I am showing 5 records at a time if the user wants to see more records user will tap on the more and another 5 records will be fetched . all things are working properly except if I will tap on the more simultaneously the app crashes . so what I want to so is to disable the more when ...

Getting Framerate Performance on iPhone

I've just come off the PSP where performance testing was easy. You just turned off 'vsync' and printed out the frameratem, then change something and see whether the frame rate goes up or down... Is there any way to do the same thing on the iPhone? How do you turn vsync off? The Instruments tool is next to useless. Its chief problem bein...

How do I free() after malloc() when the result of malloc() is returned by the function?

I have the following instance method (adapted from Listing 3-6 of the Event Handling section in the iPhone Application Programming Guide): - (CGPoint)originOfTouch:(UITouch *)touch { CGPoint *touchOriginPoint = (CGPoint *)CFDictionaryGetValue(touchOriginPoints, touch); if (touchOriginPoint == NULL) { touchOriginPoint...

Validating a user using the FriendFeed API & posting an entry.

Given the username & remotekey for a user, how do i validate the user using the FriendFeed API in xcode? How do i pass the username & remotekey, if at all. ...

[iPhone][UITableView]How to know when a group complete replace other (by scroll)?

Please refer to bellow image to get detail: I think, UITableView has some events occur when scrolling em when a group complete replace other, but I don't know :( ...

How long would it take an experienced iPhone app developer to build a "template"?

This is basically just like an HTML file...except it calls REST API to get data from online source. How long would it take an experienced developer? ...

How to play the online tv via iPhone SDK

Hi, all, I want know how to play the online tv like the site 'http://wwitv.com/portal.htm' seem it is RTSP , does iPhone sdk support this type stream ? again, how to play MMS stream , like 'mms://8.3.230.132/cctv4-200' ... Thanks for your answers. ...

App freeezes when playing sound with AVAudioPlayer

Hi! I am making an app for preschoolers with several mini-games. One of them involves finding "what is wrong" in the picture. For example if they press the kid playing in the street, a pling sounds, the child is moved out the street, and a label is updated to "1/5 errors found". If they find them all, they move on to a new viewcontrolle...