iphone

awakeFromNib and loadView execute for different instances

Hi, I'm trying to understand why: NSLog(@"self = %p", self); in awakeFromNib prints a different value than the same NSLog in viewDidLoad? This isn't a huge problem because I don't need the awakeFromNib but I would like to understand how it works. The code that creates the controller is the following: MyViewController *myViewCo...

name of UIView that was touched

Hi, How can I get the name of the [touch view] in the touchesbegan event. So if it were UIView *aaaaaview I would get aaaaaview as the return; Thank You, nonono ...

When I use Finch to play audio, can I actually do everything that OpenAL can do?

When I use Finch to play audio, can I actually do everything that OpenAL can do? ...

How to control the playback volume of a particular sound when playing it in openAL or Finch?

I may play several sounds at the same time, and some of them are louder or more silent than others. Because I am very lazy and don't know a lot about audio editing tools, I would just want to adjust the volume of the sounds programmatically so that they all match nicely. I believe winamp does something similar and they call that "normali...

Handling the rel attribute in a UIWebView?

Is there a way for my UIWebViewDelegate to see what the rel attribute of a clicked < a> element is? ...

How to compile your flex application for Iphone Using Adobe Flash CS5?

How to compile your flex (Flash Builder) application for Iph*ne Using Adobe Flash CS5? A User can Install an app having it as compiled binary? ...

Pause animation in EAGLView which is in a UITableViewCell

I have an animation in a EAGLView which is itself in a UITableViewCell. How can I pause the animation in the EAGLView when the view is not visible? Normally, I would simply use the responsible UIViewController and listen to viewDidDisappear. But how do I do that if the EAGLView is in a table? ...

are push notification tokens unique across all apps for a single device?

i will have multiple applications on the app store and 1 urban airship account to send push notifications to all of these devices. what i want to know is if each apple device has the same "push token" across all applications? this is more of a database architecture thing so that I don't duplicate a push token many times if one single d...

iPhone UITableView with index can I push a different detailed view with every different cell?

Hello All, I know its possible to create a table that has an index on the side and a search bar at the top that a user can type in to find an item, but is it possible to say to the table if array isEqual to "item1" push view1? I would like to push a different view with each cell. Anyone have any advice? ...

obj-c : iphone programming disabling the round off of a number

hi, i need to show a number to a user : 1.96666777 (timeHour) moduloformat = [NSString stringWithFormat:@"%0.0f hours ",timeHour]; but it is rounding off the number automaticly. It gives "2" and i want to show "1" i could use a NSrange and take the first number but i wanna know how to deal with this. Thanks!! ...

size of an image

From times to times I have to know the width and height of images. I am using the following code: UIImage *imageU = [UIImage imageWithContentsOfFile:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"myImage.png"]]; CGFloat imageW = CGImageGetWidth(imageU.CGImage); CGFloat imageH = CGImageGetHeight(imageU.CGImage); ...

Is there a way to determine if an iPhone / iPad app is installed?

Looking for code that would run in a browser (Safari) to determine if a certain iphone app was installed on a users device (iphone, ipad or ipod touch). The end goal is dynamically display messaging on a site to instruct the user to go install the app. ...

Load array from plist in Documents Directory

Hi all ! I use to load plist which are in my main Bundle (Ressource folder) into an array using : NSString *path = [[[NSBundle mainBundle] resourcePath]stringByAppendingPathComponent:nomPlist ]; NSMutableArray *tmpQuestion = [[NSArray alloc] initWithContentsOfFile:path]; arrayQuestion = [ [NSArray alloc] initWithArray:tmpQuestion]; ...

Is AudioSession actually the same thing as OpenAL?

Is AudioSession actually the same thing as OpenAL? ...

iphone Odd Problem when using a custom cell

Please note where I have the NSLOG. All it is displaying in the log is the first three items in the nameSection. After some testing, I discovered it is displaying how many keys there are because if I add a key to the plist, it will log a fourth item in log. nameSection should be an array of the strings that make up the key array in the ...

UITabBarControllerDelegate compare value of viewController

I have a tabBar with 4 tabs on it, and I want to perform some action when a specific tab is selected, so I have uncommented the UITabBarControllerDelegate in the xxAppDelegate.m I also wanted to see the value that was being sent logged in the console - in order to test my "if" statement. However this is where I got stumped. // Optiona...

newbie need help ! !

ok guys so i'm new in iphone dev you know it ! I want to add badge from my app : i know how to in the application did finish launching. But i want to it depending on an int value i have stored in a plist (just one string an int value) i have placed on my server htt://anadress/myplist.plist How can i read the content of this value in...

How to directly store SQLite data in XCode?

Hi guys: Searched on here and got some vague answers, so I thought i'd rephrase the problem to get some clearer answers- Right now I have an SQL Lite db that reads/parses information from a pre-formatted .txt file. When I open the app, there is a slight 'lag' as the iDevice parses the info, then gets fetched for the iDevice. I'm just wo...

Fully-loaded UIViewController losing all it's data after adding to scroll view

Summary I'm repurposing Apple's Page Control project. In loadScrollViewWithPage:, the view controllers that I'm adding to the scroll view appear on screen without their initialized values, as if displayed directly from the nib. Specifics Here's the code that appears to be working when I step through it: CBFullScreenViewController *c...

iPad UI clipped in simulator

My views created for iPad form factor look fine in Interface Builder. However, when I debug my app in iPhone Simulator 3.2 (with Hardware -> Device set to iPad), I see the UI clipped and about half size. There is a 2x button at the bottom which lets me zoom in. But this just shows the same clipped UI in double size. This is really weird...