Tag: iphone

Is it possible to have a UIPanGesture and UISwipeGesture together?

I have a UIIMageView subclass and I am adding both a UIPanGestureRecognizer and a UISwipeGestureRecognizer as follows: self.userInteractionEnabled = YES; UIPanGestureRecognizer * panGesture = [[UIPanGestureRecognizer alloc]initWithTarget:self action:@selector(handlePan:)]; [self addGestureRecognizer:panGesture]; UISwipeGestureRecognizer * swipeUp = [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(handleSwipeUp:)]; swipeUp.direction = UISwipeGestureRecognizerDirectionUp; [self addGestureRecognizer:swipeUp]; UISwipeGestureRecognizer * swipeDown = [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(handleSwipeDown:)]; swipeDown.direction = UISwipeGestureRecognizerDirectionDown; [self addGestureRecognizer:swipeDown]; but when […]

Detecting/Fixing Memory Leaks

I’ve finished coding my project, but then when I have submitted my source code in the client, it was tested, then memory leaks were detected. I have tested in Instruments using Leaks. What I am having problem with is in my AVPlayer and in my AVAudioPlayer and something in my AppDelegate. Should I find an […]

Iphone pixel distortion while zooming OpenGL ES content for Paint app

I have a strange problem with openGL ES. I’m working on a paint app for iphone [taking reference from GLPaint app] .In my code I’m using an imageView which contain outline image on which I am puting [CAEAGLLayer] paintView for filling colors. I am filling colors in outline image by drawings lines onscreen based on […]

NSXMLParser stops parsing after encountering special character

I am reading a XML file from google weather api and parsing it using NSXMLParser. The city in question is Paris. Here is a brief xml output I get <?xml version=”1.0″?> <xml_api_reply version=”1″> <weather module_id=”0″ tab_id=”0″ mobile_row=”0″ mobile_zipped=”1″ row=”0″ section=”0″ ><forecast_information> <city data=”Paris, Île-de-France”/> <postal_code data=”Paris”/> <latitude_e6 data=””/> <longitude_e6 data=””/> … … Now the code […]

Base SDK Missing?

I finally got the new version of Xcode and the iOS4 downloaded and was finally going to attempt to put my first app onto a device. I was going through the provisioning profile and got to the point where I needed to open Xcode – then all it says in the “Device” pulldown is “Base […]

Syntax error before '^' token

I just upgraded core-plot to the latest version in an application that was already running successful plots. I followed the fairly simple instructions to the letter, however I’m getting 20 syntax errors in UIView.h. It seems that I’m not alone, but nobody has of yet posted a solution to the issue. An example: This code […]

Titanium appcelerator failing on build

I am trying to run my app in the iPad simulator, but I keep getting this error whenever I try to simulate. I’ve updated everything, some fellow help for an appcelerator noob would be much appreciated. Any thoughts would help. [ERROR] : ** BUILD FAILED ** [ERROR] : The following build commands failed: [ERROR] : […]

Iphone: writing some methods in a seperate file to acess from everywhere

here is a quick question, i have my couple view controllers classes, and have some other classes. i’ve found my self creating some methods in all of their implementation files, which are doing the same. i would like to write some of my methods in a seperate file, and import this file into my view […]

Xcode 4.1 Instruments Hardly Working For Me

Possible Duplicate: Bug with starting Instruments via Profile under XCode 4.1 Build 4B110 Instruments used to work fine, however now that I have the new 4.1 Xcode on Lion, it is extremely slow and I have to wait about 5 min before it is responsive. Is anyone else having this same problem? I am using […]

Resizable View..using user touch

Changing View size using user touch input This is my question.. well sort of.. now it is old..and it was also kind of my duty to accept the guy answer since he helped me so much This is in continuation So to sum it short : 1) I want to have resizable view camera in […]