iphone

iphone sqlite app startup issues

Hi All, I have 4 database catalogues in my app, i will be switching the four catalogues. When i start the app, i read the NSUserDefaults and try to load the default catalogue in the memory, but in the first time this doesnt happen. Instead i get null values returned first time just because the DB connection is not successful for some un...

Tab Bar and Nav Controller: Where did I go wrong in my Interface Builder wiring?

I've been working on an iPhone application in XCode and Interface Builder of the Tab Bar project type. After getting a table view of topics (business sectors) working fine I realized that I would need to add a Navigation Control to allow the user to drill into a subtopics (subsectors) table. As a green Objective-C developer, that was co...

Toggle Wifi On/Off using MobileWifi private framework

Hello, For a private project using the iPhone SDK (not for the app store), I would like to toggle wifi on & off. I've done something similar for Bluetooth, but can't find the required information for Wifi. I assume I need to use the MobileWifi framework. Can anyone give some directions and/or code? Most likely I expect I need a header f...

How much memory is my iphone app using (from Simulator)

I know this has something to do with Instruments, but well it's kind of confusing and searching for Instruments on Google doesn't help much. I'd like to know how well my app runs, like how much memory it uses. I just don't know where to find something like: "As close as we can tell from the simulator you'll app will currently be using x...

Ajax Rich Internet Application framework for Linux + Firefox _AND_ iPhone consumption

For a zero-budget (e.g. University) project we need to build a rich web UI for Firefox and iPhone clients. Firm requirement: all technologies to be free and open-source. Nice-to-have: all development to be done in Java/Eclipse. I generally like the Google's AppEngine + GWT combo but this project will require much more interactivity than ...

How to create a smooth CATransition effect

The CATransition what i have implemented works really fine but not smooth, i could see the previous uiview screens during the transition, I am just doing this, CATransition *animation = [CATransition animation]; [animation setDuration:0.1]; [animation setType:kCATransitionPush]; [animation setSubtype:kCATransitionFromRight]; [animation ...

Drawing using accelerometer

Hi.. I'm trying to do a project that is basically a remake of the already posted apps on the AppStore namely movosity and air paint. Can anybody give me an idea as to what approach should I take? Thanks in advance ...

Changing position of selector programmatically in Pickerview when it is initially loaded.

How can we change the position of the selector in the Pickerview when it is loaded. For example, I want to make row 3 initially selected when it is loaded. Anyone please help. ...

How do you load data into a Table View when there's both a Tab Bar and a Nav Bar?

I think I'm way overthinking the issue of having a Tab Bar project type and adding Nav Bar controls. I've followed some basic directions and have a demo app running fine with two tabs, each with a Table View and nav bars. But how do I load data into them? I know I need to hook up delegate and dataSource, but where? ...

Returning a users lat lng as a string iPhone

Is there a way to return the users location as a string from a model? I have a model thats job is to download same JSON data from a web service. When sending in my request I need to add ?lat=LAT_HERE&lng=LNG_HERE to the end of the string. I have seen tons of examples using the map or constantly updating a label. But I cant find out h...

iPhone keyboard doesn't appear when entering a UITextField

This has to be some kind of newbie blunder that I just cant see, and Id be grateful for hints as to what to check or where to look. I've followed an iPhone tutorial that has a UITextField, making sure I connected the IBOutlet for the text field, and it seems to compile properly (no errors or warnings). But when I run it under the simula...

Can get coordinates from iPhone simulator, but can't get coordinates from iPhone device

Hi everyone, I've run into something of a mysterious bug (to me). I have some code to pick out the user's current location on the iPhone SDK. It works fine on the iPhone simulator, but when I try to run it on the actual device, I get a weird error. Here is the code (I am using ASIFormDataRequest to create a POST request): ASIFormData...

How to enable .com key for UITextField keyboard?

How do I enable the ".com" key on the keyboard for UITextField? As an example, this key shows up when user clicks on the navigation item for the apple browser. Is there a web-specific keyboard layout I could specify? ...

i2s0: transmitter underrun (0)

were doing some audio stuff and I keep seeing this in the Organizer > Console. Sun May 2 20:16:48 unknown kernel[0] : i2s0: transmitter underrun (0) Are these transmitter underruns bad? I think its just when were shutting down audio input...but could a few of these cause some issues later on? ...

Is there a way to disable a UITabBarItem from reloading its first view?

Hi All, I currently have an app that is a tab bar style app and supports rotation. Everything is great until you hit the tab bar when the device is in landscape and the original view is reloaded and placed back on screen. There is a lot of space and the overall appearance doesnt look good. Is there a way to disable this tab bar item fro...

AVAudioPlayer not unloading cached memory after each new allocation

I am seeing in Instruments that when I play a sound via the standard "AddMusic" example method that Apple provides, it allocates 32kb of memory via the prepareToPlay call (which references the AudioToolBox framework's Cache_DataSource::ReadBytes function) each time a new player is allocated (i.e. each time a different sound is played). ...

Is it possible to distribute an app that has files in NSDocumentDirectory?

I know how to put files into a bundle. These are read-only; the user cannot modify them at runtime. I know how to write files NSDocumentDirectory at runtime. These are read-write. I know I can copy files from a bundle into NSDocumentDirectory the first time my app starts up. I am wondering if there is a way to package writeable files ...

iphone app submission errors

When I try to add my application, I get Info.plist does not contain a CFBundleResourceSpecification and Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate. I don't understand! I'm so frustrated, I finished my two apps and now I can't submit th...

Image Transformation on iPhone, how to?

Since I cannot pre-render all the images in PNGs and real-time image transformation functions are required, namely: skew perspective (like the transform action found in Photoshop) Which API (CoreAnimation? OpenGL ES?) should I look into? Even better, is there any sample code around? Thanks! ...

iPhone application-Memory handling issues

Hi All, I am having some memory management issues in my app. Maybe someone may help me out here. 1) While checking for leaks in intruments, when I deploy and run the app on device, the virtual memory utilized, starts from 50 MB(even though i've just launched the app and am on the first screen). My resources contribute to 2.6 MB of it a...