iphone

Can you tell which image the iPad has displayed at app launch? (or, I'd like to know the orientation if possible)

There are a number of similar questions on this site about discovering the orientation of the device in applicationDidFinishLaunchingWithOptions being problematic, but I've yet to find a working solution. The problem I have is that I am adding a full screen image (identical to the currently chosen Default-XXX.png being displayed by the ...

Cocos2D iPad Vector Sprites/Spritesheet creation

Hello everyone, Is there a way to load vector graphics into the iPad using cocos(or some other method) as sprites or sprite sheets but leaving the images as vectors and not textures? The reason being is we have an animation that is just way way too big to load in as a texture so we want to scale it down using a vector image. If this is...

How to get the current location or GPS coordinates with Core Location?

How to get the current location or GPS coordinates with Core Location? ...

Using FFMPEG Audio conversion in the iPhone.

Hi to everybody, I'm using ffmpeg in the iPhone, reading an wma stream from an mms server, but I want to save the stream to an m4a file using the ALAC encoder in ffmpeg, the problem is that trying to save the raw stream, the stream processed using avcodec_decode_audio2 , the file is not even recognized with the wma format, and obviously...

Set UiView background image like apple default style

I'm new on Cocoa OBJC and iPhone dev. Where to find the default background that apple uses everywhere (like the one on the iphone's default setting app) ? It's possible to set the image from interface builder or you have to set by line code? Thanks ...

Switching images from an array in an iphone app

I was helped here a while ago about loading images from an array, but would like to know the exact details please. Where does the code go if my app will be as simple as images that load from an array depending on whether the user chose the next or previous button? Does it go in the View Controller class? What do I need if I literally j...

UIMenuController not showing up

I'm trying to create a custom UIMenuController and display it in my view. Here's my code: UIMenuController *menuController = [UIMenuController sharedMenuController]; UIMenuItem *listMenuItem = [[UIMenuItem alloc] initWithTitle:@"List" action:@selector(addList:)]; [menuController setMenuItems:[NSArray arrayWithObject:listMenuIte...

How to draw a circle filled with four colors?

Anybody? I want to draw a circle in core graphics with four colors in it. i.e. four equally distributed colors, one in each quarter of the circle. ...

Adding a button in UITabBar to trigger a popover...

Hi! First post :) I am building an iPad app which basically has a UITabController which controls and displays 2 UIViewControllers that I set via: [tabBarController setViewControllers: [NSArray arrayWithObjects:browserController, videoController, nil]]; I would like to add a 3rd button to the UITabBar that presents a Popover when ...

Iphone Deployment Target with ASIHTTPRequest

I'm having an issue trying to use ASIHTTPRequest libraries in my iPhone application. When I go to compile my project for the iPhone Simulator 3.0 SDK, I get the following error: Too few arguments to function 'CFNetworkCopyProxiesForAutoConfigurationScript' After a bit of search around the web I found some indications that it may be...

progress bar when downloading image

Hello - How would I go about adding a progress bar for downloading a large image, or any file for that matter? here is my code: NSArray* paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *docsPath = [paths objectAtIndex:...

How to prevent a UINavigation bar to scroll along within a UIScrollBar?

Hi, I have a UINavigationBar that I put from Interface builder into my view controllers view, and also have a UIScrollView within this same view. The problem is that this way, the scroll doesn't work, the only thing I can do so far in order to get the scroll working is to get my view controller's view pointing to the scroll view. This wa...

How to rotate a circle(Fortune wheel) clockwise and anticlockwise?

How to rotate a circle(Fortune wheel) clockwise and anticlockwise by touching circle in particular direction.i.e. if I touch circle and drag my fingur on Iphone in clockwise direction 'my circle will start rotation in clockwise direction and vice versa. If anybody have an idea about it please share it as soon as possible. Thanx in advanc...

Bottom part of UISwitch is cut off on the device but displays normal on the Simulator

The UISwitch on my device: The UISwitch on the simulator: As you can see, the bottom pixels are cut off on the device, but not on the simulator. I have tried just about everything I can think of, but nothing has fixed the problem. Some of the things I've tried: Changing the UISwitch's frame's height Changing the UICell's h...

UITableViewCell repeats after scrolling

I am not sure why my UITableViewCell's are repeating after the user scrolls? - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; ChartlyCell *cell = (ChartlyCell*)[tableView dequeueReusableCellWithIdentifier:CellIdentifier]...

How do I implement an "iPhone App Store" style tab bar?

I'm developing an iPhone app that needs to display fairly complex information, and I think the best way to display it would be to mimic the UI layout that Apple chose in their "App Store" app for iPhone. If you load the App Store app and go to the "top 25" tab, there will be the standard tabs on the bottom (a normal iPhone tab bar) as w...

Why would webview's loadHTMLString not hit webViewDidStartLoad callback?

Background: I am developing a news reader type app native for the iPhone which displays many of the news articles as html in UIWebViews. My current goal is to have a css file in my project that can style html that is programmitically meshed up (article + comments, etc). I have done a bunch of little proof of concepts and I know that I ...

Using KVO with custom UITableViewCell and CoreData

I've read over a ton of documentation and tutorials about KVO but I haven't found any that I've been able to abstract for my application. I have a table view that uses a custom UITableViewCell class to provide an interface for turning options on/off. The cell has a UISwitch that I would like to "bind" to my model's boolean properties. ...

Localization of the iPhone Settings.bundle

For some reason I cannot get the Settings.bundle to recognize my additional languages. I must be missing something obvious, but I just cannot figure it out. Here's what I've got: Project Structure in XCode: Root.plist file: French Root.strings file From everything I've read, I believe the project structure is right. The Stri...

iPhone: Opening Application Preferences Panel From App

Is it possible to open the application's preferences pane directly from the app, or will users be forced to to go through the Settings app? ...