iphone

CABasicAnimation not started when adding animation to a layer that is not visible

Hi Stackoverflow, I'm trying to create a little glow-animation with Core Animation. Animation works fine so far. Problem is, the animation is used in a table cell. When the animation is added to a layer that is currently in a cell that is not yet visible (without scrolling), the animation is not started somehow? Seems as if CoreAnimatio...

@selector not working in imageView for UIButton with image

I have placed the uiscrollview for viewcontroller.Then i have set my large size image as imageView in to the uiscrollView.Then i have set the some buttons into the imageView.In that imageview, i have called one method "showRestaurant".But the selector failed to called the method.Kindly help me regarding on this.Thanks in advance. Code:...

NSFileManager creating folder (Cocoa error 513.)

Hello everyone, I'm trying to create a folder inside the /sounds folder of my app. -(void)productPurchased:(UAProduct*) product { NSLog(@"[StoreFrontDelegate] Purchased: %@ -- %@", product.productIdentifier, product.title); NSFileManager *manager = [NSFileManager defaultManager]; NSString *bundleRoot = [[NSBundle mainBundl...

record and play the same file

Hello, I am trying to record the audio using AVAudioRecorder. My problem is i want to play the file while it is being recorded. Is there any way i can do this? I have set the category to PlayAndRecord. I have created the file for recording. I have tried to initialize both the recorder and the player for the URL and tried to play the fil...

Can mapkit framework provided in iphone be used to create an enterprise application ?

Hi All, Can mapkit framework provided in iphone be used to create an enterprise application, without violating Google privacy and terms. As I am creating enterprise application using enterprise certificate (http://developer.apple.com/programs/iphone/enterprise/) form apple, wanted to know weather I can use makkit framework in my applica...

Eraser in OpenGL ES iphone

i have two images which are overlapping on each other.(the way in which cards are placed on top of each other) now if i move my finger over the top most image that portion of the image should become transparent.(opacity of that part should become 0). i am new to OpenGL ES development. kindly help me out or give me any suggestion to co...

Scrolling to Last Table View Cell Shows First Cell's Data

Hi! I am using UITableView with Griding Functionality. When scrolling, at the last column it automatically comes at First cell. What should I do to resolve this problem? ...

Playing video in background of openGl application on iPhone

I found some tutorials about playing a fullscreen video on the iPhone, but I wonder if it is possible to play an embedded movie in the background of a openGl animated app? The movie should just loop seamlessly and should not have any control buttons like play/pause/volume popping up while being played. If possible, then how about perfo...

UIWebview size limit

Everytime I load a html file that is larger than 2MB my app crashes. Is there a limit to how big a web page can be? How can I not crash my app (partial loading?) ...

How to change the iVar of another class.

This is the code. It is pretty straight forward. I made two classes one is returning the error and hydrate the iVar of another class (TheView) and show it to the User. however I cant figure it out why the View return Null at all time. Thanks is advance guys. @interface AccountControllerModel : NSObject { NSString *anErr...

UIScrollView with embedded UIWebView not scrolling after holding

Hi, I have a UIWebView which is embedded in a UIScrollView. The webView is resized so that the scroll view manages all the scrolling (I need control over the scrolling). In the webView I have disabled userSelection via '-webkit-user-select: none;' Everything is working fine except one annoying detail. When I hold down my finger on the...

When is the autorelease pool triggered

i have used autorelease throughout my app and would like to understand the behavior of the autorelease method. When is the default autorelease pool drained? is it based on a timer (every 30sec?) or have to be called manually? do I need to do anything to release variables that are flagged with autorelease? ...

How do I use UIActivity Indicator with NSUrlConnection

I'm using NSUrlConnection for accessing data from server. I want that during fetching of the data from the server the user interactivity is stopped as well as the code execution. And I read more and more on Stack Overflow or Google, but I'm not get appropriate solution. Please see the code which I'm using. The first time when the user...

Facing problem in setting up libpng

Hello, I am new to iphone game development so apologies if I ask something stupid. =( What I'm trying to do is to use libpng in my opengl project to load sprites using xcode. I've downloaded the package of libpng from internet and added its source to my project but when I try to build, it gives this error: "Command Developer/Platform...

How to support Multitasking (fast app switching) with 3.2 SDK

I'm building an app which is a universal iPhone/iPad app. I'd like to support fast app switching (multitasking) with iOS 4.0 SDK (eg: on iPhone 3GS with iOS 4.0). However, when I set the app to build targeted to iPhone OS 4.0, it will not launch on the iPad (which currently latest software version is 3.2.1) So it appears that the versio...

Correctly convert NSString to NSnumber

Hi guys, I can't figure out why it's not working, I have a NSString which I need to convert to NSNumber (to save it to Core Data) e.g NSLog(stringNum); returns 1 NSNumberFormatter * f = [[NSNumberFormatter alloc] init]; [f setNumberStyle:NSNumberFormatterDecimalStyle]; NSNumber *myNumber = [f numberFromString:stringNum]; [f releas...

How to work with NSTimer

Im using alot of timers in my application. For recording time, moving object, fading etc. I use the same timer for several puposes in the same view at different times. How should I declare and invalidate or release my timers properly? Atm Im declaring the timers like this: fadeTimer = [NSTimer scheduledTimerWithTimeInterval:0.1 target:...

how to assign string array values to varible

hi i am new to iphone. what i am doing is sorting the labels for that i am assigning the string array to temporary string variable as follows: NSString *tmp = [labels objectAtIndex:j-1]; labels[j-1]=labels[j]; labels[j] = tm; but it shows error at last line that is incomplete types in assignment how can i solve this? thank you ...

can we seperate the audio file into packets based upon the diffrent frequency of the file??

Hi friends can we seperate the audio file into packets based upon the diffrent frequency of the file?? if so please assist me ...

Replacing the content of UIImage(s) loaded from XIB at runtime

For a concept I'm developing, I need to load XIB files manually and by using class and instance method swizzling I have been able to intercept calls to imageCustomNamed, imageCustomWithContentsOfFile and imageCustomWithCGImage for the UIImage class and initCustomWithImage for UIImageView. What I want to to is detect the image name and re...