cocoa-touch

MKMapView inside a UIScrollView doesn't move with swipes

I've got a detail view with various labels and such providing information about a place (address, phone, etc.). The information provided is taller than an iPhone screen so they're all in a UIScrollView (itself inside a UIView) that allows you to swipe up and down to see everything. I also have an MKMapView inside the scrollview. When it...

Iphone: Apllication feasibility

Hi, I am very new to developing apps on the Iphone (In-fact I am new to application development all together). I would like to know what the feasibility for an idea for a app on the iphone is. 1)The application would allow users to download content (audio or if possible video files) onto the device. 2)Each of these files will need to be...

How can I override the iPhone's home and sleep hardware buttons?

Is it possible to override the hardware home and sleep buttons on the iPhone? I did a lot of research on this, but I was unable to find any definitive answers out there. I'm not looking to design something malicious, but I was curious about the possibility of doing this for a personal project on my own iPhone. ...

UINavigationBar leads to Crash..!

APPLICATION : My application has three pages Page A,Page B and Page C. WHAT I DID : I can individually link Page A to Page B and Page A to Page C. PROBLEM: I am not able to link from Page A to C when i come back from B to A. What should I do? Your Suggestion and advise is most welcome. Waiting for ur reply. Thanks ...

How to find out the modulus and exponent of RSA Public Key on iPhone/Objective C

Hi there! Is there a possible way to find out the modulus and exponent of the Public Key, created with SecKeyGeneratePair (the Security Framework in general)? ...

CALayer memory usage on draw - implicit cache?

Hello everyone. I'm having a peculiar problem with CoreGraphics/CoreAnimation on the iPhone. To better explain how the problem manifests itself, I'll walk you through my current setup and illustrate with code where appropriate. I'm trying to draw a bunch of preloaded images in a UIView's CALayer, but whenever the image displays, the ap...

Reading string from a URL and then loading it's image in an UIImageView

I've got the following code that loads on an UIImageView the image that I want from the internet: NSString* mapURL = @"http://mydomain.com/image-320x480.png"; NSData* imageData = [[NSData alloc]initWithContentsOfURL:url]; UIImage* image = [[UIImage alloc] initWithData:imageData]; [marcaBackground setImage:image]; [imageData release]...

UITextField make text bold?

Quick question, does anyone know how to programatically make the text in the textField bold or italic? @property(nonatomic, retain) IBOutlet UITextField *textField_TOP_01; [textField_TOP_01 setTextColor:[UIColor redColor]]; [textField_TOP_01 setText:@"This text is bold"]; Much appreciated Gary ...

beginAnimations:context: not working with color?

I am a little puzzled why the following is not working, button_ONE does a nice fade, but pressing button_TWO just snaps the color to black with no fade. // FADES OUT OVER 1.5 Secs - (IBAction)button_ONE:(id)sender { NSLog(@"FADE ALPHA"); [textField_TOP_01 setAlpha:1.0]; [UIView beginAnimations:nil context:nil]; [UIView s...

Curve text on existing circle

For an application I am building I have drawn 2 circles. One a bit bigger than the other. I want to curve text between those lines, for a circular menu I am building. I read most stuff about curving a text that you have to split up your text in characters and draw each character on it's own with the right angle in mind (by rotating the ...

Drag UIView between UIViews.

I have a UIView object X that is contained in an UIView object A. I want to be able to touch X and remove it from object A and move it into object B (another UIView). Both Object A & B are inside of the same super UIView. A B _____ _____ | | | | | X | -> | | |___| |___| This is what I have so far. @implementat...

How do I get a formatted NSString from format and va_list?

I'm developing a static library that will be distributed to other developers, who may need debug statements. So I have several levels of logging. In order to avoid constant appearance of if(loggingLevelCurrentlySet >= loggingLevelWantedForThisInstance){ NSLog(@"log this"); } I created a set of logging function wrappers. A simp...

Programmatically selecting tab and modifying navigation view

Hello, consider a tab bar controller whose tabs are implemented by navigation controllers. Given the action of the user on tab A, I first need to programmatically select tab B, pop to its navigation's root view controller, do some modifications therein and push another view controller onto the stack. However the naive approach tabBarCo...

UIView shake animation

Hi, i'm trying to make a UIView shake when a button is pressed. I am adapting the code I found on http://www.cimgf.com/2008/02/27/core-animation-tutorial-window-shake-effect/. However, by trying to adapt the following code to shake a UIView, it does not work: - (void)animate { const int numberOfShakes = 8; const float duration...

UIPopoverController without arrows?

Hi, I would like to know to make an UIPopoverController without arrows In fact I would like to simulate something like this: See that There is no arrows There is a title that is somehow inside of a expanded top border of the UIPopoverController and not inside of it like in the normal UIPopoverController. I assume this is not reall...

MonoTouch.Dialog equivalent for Objective C?

Is there an equivalent of MonoTouch.Dialog, but for native Objective C apps? MonoTouch.Dialog automatically generates UITableView settings-style interfaces based on model metadata, or via a simple API. I've been experimenting with building apps with MonoTouch, but I've found the app startup time currently unacceptable, so I'm trying to...

changing an item of UIToolBar programmatically

Hi, I wonder why this is not working? UIButton *infoButton = [UIButton buttonWithType:UIButtonTypeInfoDark]; [self.view addSubview:infoButton]; [infoButton addTarget:self action:@selector(showInfoViewController) forControlEvents:UIControlEventTouchUpInside]; //NSLog(@"%@", [infoButton description]); //button s...

Create game sprites in Interface Builder?

Something I'm not very clear on is whether I should/could use interface builder to create reusable game sprites. For example, if I have a ball that I want to create an indeterminate amount of at run time, should I be creating a nib file (and either attaching graphics in IB or drawing them in drawRect) with it's own viewcontroller class a...

AVAudioPlayer stop a sound and play it from the beginning...

I used the AVAudioPlayer to play a 10 sec wav file and it works fine. Now I what to stop the wav at the 4th sec and then play it again from the very 1st sec. Here is the code I tried: NSString *ahhhPath = [[NSBundle mainBundle] pathForResource:@"Ahhh" ofType:@"wav"]; AVAudioPlayer *ahhhhhSound =[[AVAudioPlayer alloc] initWithContentsO...

how to make UITableViewCellEditingStyleInsert button call insertNewObject

... i am sure this is a basic question, so thank you in advance. i add a cell to the end of a section when in editing mode and i give it UITableViewCellEditingStyleInsert. how do i set what function that button calls? ...