iphone

CGContextSetFillColorWithColor error (EXC_BAD_ACCESS).

I am confused why my app is crashing with this error. I have implemented the displayLayer method (for rendering CALayer). The first time this method runs things work fine. But subsequent calls to this is when the error occurs. The error seems to occur when the self.bgColor is being set to the context fill color. INTERESTINGLY... if I c...

How do I draw to the contentView of a UITableViewCell?

Hi there, I'm trying to draw a line on a custom UITableViewCell. When I draw inside the overriden drawRect and use the current graphics context I don't see anything. I know I can't see anything because the draw rect is drawing to the UIView and not the contentView. So my question is, how do I draw to the content view using CG? Say, gra...

What's wrong with this selector declaration?

I expect this to work based on the docs here: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/ObjectiveC/Articles/ocSelectors.html SEL sel = @selector(loadMapType:[ms uniqueTilecacheKey]); "error: expected ')' before '[' token" ...

Crashing app when device not connected to Xcode

I've encountered this weird behavior with my iPhone app. It runs fine on the device when being debugged with Xcode, but when it's run on the device when the device is not connected to my computer it crashes almost immediately. Needless to say, I find this a bit disconcerting since I'm not sure how to debug it. Anyone have ideas on what'...

how do i make SecKeyRef object from NSData of publicKey value

I need to do RSA encryption for that i need to have SecKeyRef object for the public Key i have. Do i still need to add to the Keychain and get from the Keychain as a SecKeyRef ? Is there any way i can convert my publicKey value from NSData bytes to SecKeyref ? Please help Thanks ...

Passing Around a Selector and Then Specifying Parameters

I have a function that creates a UIView with a bunch of UIButtons. Each button calls a function with a string for a parameter. So, in my function I do something like: [button addTarget: [multiRadio objectAtIndex:0] action: NSSelectorFromString([multiRadio objectAtIndex:1]) forControlEvents:UIControlEventTouchUpInside]; H...

CoreData Vs FMBD for iPhone

Hello all, I heard using sqlite for long data transition from database is not efficient so I am planning to use FMDB for iphone but want to know if core data is better or not? What will be an efficient way to do it. tnx in advance. ...

IPHONE: How to build and use and array of special constants?

Hi, I am working with CGLayers, and its blend mode constants, as kCGBlendModeDifference, kCGBlendModeHardLight, kCGBlendModeLuminosity, etc. I would like to build an array out of these constants and use them by index, in an instruction like CGContextSetBlendMode(context, [myArrayOfBlendModes objectAtIndex:x]); but I have two probl...

Displaying addressbook data acording to a certain search criteria

I need to display ABPeoplePickerNavigationController according to a certain search criteria. I pass a name from my view , i need to display the ABPeoplePickerNavigationController with that name only. How can i do this. Thanks in advance !!! ...

How to enable touchEvents (scroll and pan) in MKMapview below a custom UIView?

In a nutshell, I am trying to figure out how to scale the geometry (point, line, and polygon) implemented in a custom view (geometryView) on top of MKMapView (mapView). What I did was.. Create DrawMapViewController. Add the UIBarButtonItems (MAP, PT, LN, PG) on the bottom toolbar. When you click on map button, you are able to pan/...

Need to change the color of table view selection!!!

Hi All, I need to change the default blue color selection of table view to some custom color. Is there any way to do that. Help me Thanks in Advance Shibin ...

Copy Folder From Iphone Resourse directory to Application Directory

hi all, i am new to Iphone programming. I want to copy a folder(which contains subfolder hierearchy and files) from resourse folder to application folder. i have no idea about this. Please suggest how can i do this task? Thanks ...

Is it ok to use initWithFrame for custom tableviewcell after iPhone SDK 3.0 ?

Hi, It is shown that initWithFrame is deprecated with initWithStyle in sdk3.0 and above. But we can still use it without any warning/error. So is it ok to continue using initWithFrame for implementing custom cell in tableview? Thank You. ...

End call, don't return to app automatic in iphone 3.1 version.

my app use openURL to have a call, but when I end call, it will not return to my app automatic in iphone 3.1 Anyone know that?It's a bug of iphone 3.1? Thank you very much! ...

Not sure I'm doing this the best way...

I have app delegate.h & .m files linked to a Main.Nib. Nib has a window and a tabbar controller which has 4 navigation controllers. Each of these 4 do their own thing inside 4 more Nib's containing tableview controllers etc. The tableview controllers take their data from arrays manipulated in the app delegate. All work fine and i hav...

Development Investment differences between iPhone and Symbian

Which one is cheaper: to develope on top of Symbian or on top of iPhone? Both direct $-figures and time-to-market figures are warmly welcome. ...

how to sharp/blur an uiimage in iphone?

i have a view with uiimageview and an UIimage set to it.how do i make image sharp or blur using coregraphics? ...

Calling a function from another UIViewController

Hi guys, I'm a beginner programmmer, this is for xcode - iPhone. although i made alot of my iPhone app but i seem to lack some understanding of how a simple communication might work. Specially when I've got 2 ViewControllers. And I wana call one function of a ViewController from another ViewController. Both are under a tabbarControlle...

event + copy + iPhone

I want the event when user pressed on copy (pop up menu) in iPhone. ...

Caching behavior of UIImage

Does UIImage ever removes images from its cache? Can I keep a pointer to an image I got from imageNamed: and use it as long as I like or must I always call imageNamed:? ...