iphone

IPhone SDK, EXC_BAD_ACCESS Changing image?

I have my code and i recieve the EXC_BAD_ACCESS error when it is suppose to change... any ideas: -(void) updatePlay { UIImage *img = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"bursttt" ofType:@"png"]]; if (CGRectIntersectsRect(pinend.frame, balloonbit1.frame)){ [maintimer invalidate]; ...

how can i use a particular UIActionSheet's button with some actioning (explain in brief) in iphone ?

how can i use a particular UIActionSheet's button with some actioning (explain in brief) in iphone ? ...

Obtain an array of audio sample values and compare them with a threshold

I have to write an iPhone application: to start recording when I have something on the audio channel, then to stop the recording after 1.15 s, to obtain a float array with the audio levels and to compare the value to see if they are 0 or 1. Please give me some ideas...I´m a beginner. ...

iPhone: How to Get an Entry for an App in the Settings?

I am doing a movieplayer application and I want to activate certain settings about my application in settings. What are the steps should I do to get an entry for my app in the settings of iphone/itouch? ...

I can't load the view from the more tab (UITabbar).

Hi! Take a look to this video, I explain everything in it: the video Thanks a lot, I hope you will help me! ...

Socket Communication in iPhone

I have many images in iPhone. I have to send this images to server using a socket communication. what all we need to do to send the images to server through socket. If i use this code i can send string. what all should i change in the code so that i can send image through socket. I am new to network programming so some please help me to...

xml parser not able to read all the nodes of the xml

Hi i am trying to get values from all the nodes of a xml returned from a web service. But debugger only runs on didStartElement api, it should go to other apis also but terminates at that point only, it does not read it further. code: -(void)parseData{ NuanceAppDelegate *appDel = (NuanceAppDelegate *)[[UIApplication sharedApplication]...

UI Image rotation is not working

hi, I am developing UI Image based app. i am rotating image using context it giving complete white screen . image is not getting.i used all methods provided by stack overflow , but not able to succeed. Finally i tried using UI Image-view its also not giving rotating image. pleas provide a better option for me. thanks in advance. ...

How do you load a view on top of another view in the iPad

How do you load a view on top of another view in the iPad like in the wordpress app when it asks you to setup your blog. Can you show or post me some sample code. I have an NSUSerdefaults setup so it will display this on the first launch. I would like this view to look like this http://uplr.me/files/p45064.png See how it has the shaddow...

How do I use UIImagePickerController just to display the camera and not take a picture?

Hello All: I'd like to know how to open the camera inside of a pre-defined frame (not the entire screen). When the view loads, I have a box, and inside it, I want to display what the camera sees. I don't want to snap a picture, just basically use the camera as a viewfinder. I have searched this site and have not yet found what I'm looki...

Custom Alert view

hi, I want to create a custom alert view, i.e. i want to put some images and my choice color on alert view, i know how to create normal alert view, but can any one help me out in this one??? so that the application will look pretty good. regard viral. ...

Problem with Landscape and Portrait view in a TabBar Application

I have an TabBar app that I would like to be in landscape and portrait. The issue is when I go to tab 2 make a selection from my table then select tab 1 and rotate the device, then select tab 2 again the content does not know that the device rotated and will not display my custom orientated content correctly. I am trying to write a pri...

Application crashes after when array of images are stored

Hi, I'm getting the screenshots from the following code: CGImageRef cgScreen = UIGetScreenImage(); if (cgScreen) { UIImage *result = [UIImage imageWithCGImage:cgScreen]; CGImageRelease(cgScreen); return result; } I'm calling the above code in a timer of 1/1.0 seconds as: [array addObject:[UIImage image...

UIPicker and send selected row data to UIView

Hi, I have written a UIPicker which is populated from a .plist. This part works fine. What I don't know how do is once the row has been selected is to display that underlying data in another UIView. The code in my .m file is: #import "airlinePickerViewController.h" @implementation airlinePickerViewController @synthesize picker; ...

Cocos2d for this?

Hi everyone, I just finished my concept for an iphone app. I have a main program and in that program I want to start a game. MAIN PROGRAM (BUTTON 1 / BUTTON 2 / START GAME) | | Cocos2d Game Is this possible? To use cocos...

Core data, threads saving to a persistant store w/out locking, whats could go wrong?

My application downloads and caches photos into coreData in background threads while still allowing the user to poke around in the application. Currently after a photo's data is done downloading I start a thread to save it to coredata using the suggested shared storeCoordinator and thread-owned context then merge on the main thread, I a...

How to ensure YouTube API only returns videos that are streamable on iPhone?

I'm building some YouTube search functionality into an iPhone app and want to ensure that I only receive results that will be playable on the device. According to the Searching for videos section in the API reference doc this seems to be relatively straightforward: The format parameter specifies that videos must be available in a par...

Using TTMessageController by -pushViewController

Hi Everyone: TTMessageController (from the Three20 framework) was recommended to me to replicate the email creation behavior. However, I am running into a bit of a problem integrating it with my application. The rest of my application uses a UINavigationController in order to show the various UIViewControllers, but it doesn't seem that ...

Can I prevent mobile safari from auto-rotating the screen on ipod touch or iphone?

We have an offline Safari application with UI designed for vertical use (pixel perfect). We would like the UI to stay vertical no matter what how the user rotates the ipod / iphone. Is it possible with offline Safari application? This question is exactly the same as http://stackoverflow.com/questions/938462/can-i-prevent-mobile-safari-f...

[iPhone]Objective C, objects which do not conform to NSCoding. How to write them to a file.

Hi, I am using an Objective c class, a subclass of NSObject. This class cannot be modified. I have an instance of this class that I wish to write to a file which can be retrieved and later reinstate. The object does not conform to NSCoding. To sum up, I need to save an instance of a class to a file which can be retrieved later, without ...