objective-c

how can i apply UIColor to existing image ?

i have a1.png image. i wants to apply red/green/any color on that image. can anyone has solution ?? ...

Augmented Reality

Is there any augmented reality framework or library (except the arkit)? ...

how to add and get the values from .plist in iphone sdk

Hi all, I am implementing a application based on web services. In that I need to add a string as property in .plist and I need to get the value from the .plist whenever I need in the code. Can you guys please help me on this?. It is a very urgent requirement for me. Thanks in advance, Sekhar Bethalam. ...

Sending the intValue message to a NSNumber causes a "Bad Access" error

I'm trying to get the integer value of an NSNumber initialized with a float and I was expecting that intValue handle the conversion (as the docs say). #import <Foundation/Foundation.h> #import "Fraction.h" #import "Complex.h" #import "ComplexMathOps.h" int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [[NSAutore...

Objective-C handling integer values

I am getting confused with how to handle Integers in Objective C. If I define the following: NSInteger i = 6; NSLog(@"%d", i); I expect it to print 6 to the console. however I have an NSInteger within an object which is obviously reference by a pointer so I get very difference results. For example: @interface Section : NSObject { ...

How can i associate an IBAction event with an image?

I have a application which contains a moving image and i want to animate the image using a my custom animation. How can i associate an IBAction event with the image? How can i detect the coordinates on screen where the user touched the image? Please Give Your Suggestions. Thanks in advance and Your Suggestions are Most Welcome. ...

Path and extension of image

I want to get the Path a of image of the photo albums from the iPhone device. and also i need the extension of that image with their name. ...

displaying array of objects dynamically in 2 different pickerviews

ya i am using pickerview but i dont want to display array of objects simply.instead i want that if i select an object in 1st picker so it should dynamically change and display its corresponding objects in 2nd picker below it.. plz help.. i am stuck with it from 2days.... thanks ...

How to handle iPhone Simulator NSInvocation issue for iOS4.0+

For iPhone Simulator iOS4.0+, NSInvocation doesn't handle exceptions well. I came across a workaround to use objc_msgSend. When I tried it for the below invocation as objc_msgSend(target_, [invocation selector]) and commenting out [invocation invoke] under createResponseFromInvocation() hangs. I tried different ways of calling obj_msgSen...

IPhone Leaking Memory in tight loop

Hi all, I'm having a problem with my memory footage, it keeps on increasing even though I have properly released the objects in tight loop. The app will crash with "out of memory error" after some time... I've drilled down the problem to this: /******************** Begin SimpleObject ***********/ //@interface SimpleObject : NSObject { ...

How to invoke a crashed app automatically in iPhone/iPad

Is it possible to invoke an app automatically when it encounters a crash in iPhone/iPad? If so, any pointers will certainly help. Thanks! ...

how to set rounded corner for a UITextView ?

how to set rounded corner for a UITextView ? ...

Searching an NSMutableArray with a String and returning the entire compared Array....

Hello Everybody, it seems my Problem isn't a problem for anybody eles because I havend fount anything about it. so it maybe isn't such a big Problem but for me it is. I have this MutableArray filled with alot of data from an XML file. -Name -Age -Address The search goes for the Name, and the filtering works pretty fine so far. what ...

How to change the icon of an image to represent it has been selected on an iPhone.

I am trying to simulate the same behaviour as the defaults "Photos" application found on the iPhone OS 3.X-4.0. Basically when the user selects multiple photos in the Album via the UIImagePickerController from the Image Library,an icon (tick mark) appears on the image to represent that the image has been selected by the user. How to impl...

Leak problem with NSKeyedUnarchiver

here I have some code where the Leaks-Instrument detects leaks. The commented Numbers behind some lines taken out from the Leaks-Instrument. I don't know what I have to do here. I have made many tries, have released and autoreleased, but no solution. Can somebody show me where the problem is? - (void) handleDataModel { int theTag = [...

iphone: UIScrollView Paging enabled with NO ZOOM and NO PREVIEW.

hi, i want to implement a UIScrollView where paging is enabled and i can just flick through some images. Thats all i want to be able to do for now. I have done this so far in interface builder: can someone help? I dont know how to do the rest. Can someone please help me with this. I dont need any zooming functionality. I dont want an...

How to display images of type .jpeg or .gif or .tiff in iphone sdk

Hi Guys, I am facing a problem while displaying the image in iphone. I used the below code but it work only for .png files. UIImageView* imageView=[[UIImageView alloc] initWithFrame:CGRectMake(6,10, 80, 80)]; imageView.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:customerListObject.custo...

tool to retrieve data from .sqllite local db

is any tool is there to retrieve/view datas from .sqllite iphone local database and is there any way to view data without fetching and storing it to tableview. ...

Objective-c = NSMutableDictionary, Profile & Score recording

Hi! i've been trying to make a system in which i can record the scores of a game, linked with the profile of the player being used. I am not using any on-line leaderboard system (yet), at present I just need to have a score system at its basics. I have managed to make it that the method I am using obtains the score and the profile be...

Can we animate multiple objects using a single timer?

To animate multiple objects in a view, do we have to use seperate timers for each of the object? Currently I have four objects for which I am using four timers. How can I do it using a single timer? Thanks! ...