iphone

multiple tables on single screen programmatically (without a xib file) iphone

Hello, I am trying to implement the following scenario: There is a screen called: Study (this screen is the rootViewController of my tab bar controller) In this screen, I need to display two different tables: words and phrases I need to do this programatically (i.e. without a nib file). So I am writing the loadview for the Study view C...

iPhone telephone api?

Hi everyone, Is it possible to access active calls on the iPhone (with or without jailbreak)? Best, Stefan ...

Memory footprint benefits of using CoreData vs in-memory not evident/obvious - opinions?

I have an app that currently holds all state in memory. It fetches a bunch of information from a server as JSON and then holds on to the JSON values in memory. Each JSONObject can be ~300 bytes and there can be thousands of such objects. I use this data simply to populate UITableViews. In order to better handle large amounts of aata, I ...

Beginner-Question: Hey to create + open a second view? (iphone sdk)

Hi, at the moment I try myself on iphone develpment. I read a lot of howtos and a complete book, to find myself in ObjC. I can create my first app, hello world, get actions on buttons and so on. Now I have my View (Created on New Project -> View Based App). How can I create a second View and show the second view on a button click on ...

Multiple Copies of XCode - Testing code against older versions of iPhone SDK

I am interested in testing my current iPhone app against an older version of the SDK (3.1.3). I know that I can compile my code to run on this version of the SDK, but I want to test it to make sure it still works since I am using newer APIs and using weak linking so that it will continue to work on older iOS versions. Ever since upgraded...

UIPicker detect tap / touch on currently selected row

Okay guys, I have a UIPickerView and I want to do something when the user TAPS the currently selected row. I have it working right now where if they tap a row which is NOT selected, it rotates to the selected center view. However, when they tap this already selected row, the method didSelectRow is not called. I need something that execu...

load pathForResource from a text field?

Hey so i am trying to give my music player a path from which it will find the music file to play but i have one question. Is it possiable to read the pathForResource from a text field instead? I have a table view, whena row is clicked a new view pops up where the sound will be played. Regular: NSString * pathToMusicFile = [[NSBundle ...

How can I preload a Core Data database as a part of the build process for an iPhone project?

Here's my situation, and it's probably fairly common but I have yet to find a satisfactory way to do it. I am developing an iPhone application that will have a read-only, pre-loaded Core Data database stored in the app's bundle. I completely understand how to deploy such a thing. That isn't my problem. My problem is How do I pre-load t...

iphone: memory leak problem: message sent to deallocated instance, why?

Hi guys, here is the problem, today I had a bad time debugging my project, the console said: [CFString release]: message sent to deallocated instance 0x12345 I found the problem, and also, the solution, but I'm not sure why the error happened. -(BOOL) sendRequest:(NSString *) message { //xml -> data NSString *xml = [self toXML:messa...

why do my programically generated buttons NOT attach themselves to the current view?

The code below generates a button and places it on the screen; button = [UIButton allow] initWithFrame:CGRectMake(0.0, 0.0, 20.0, 20.0)]; button.frame = CGRectMake(0.0, 20.0, 10.0, 40.0); button.backgroundColor = [UIColor redColor]; [self.window addSubview:button]; However, when I generate a new screen via "pushViewController:animated"...

Place a pop over on a specific location

Scenario: I have a UITabBar on the top of my view controller. There are a few buttons on the tabbar. When the user taps on any of the button I want to display a popover just under the button that has been tapped. I can display the pop over with no problem but I can't figure out how to detect the location of the button that has been pres...

Immediately freeze-frame an AVCaptureSession

I'm building an app that allows users to snap pictures using the iPhone camera, and am using AVFoundation when it's available (iOS4) so users can use the tap-to-focus feature, even with a custom overlay. The problem I'm having is that captureStillImageAsynchronouslyFromConnection takes several seconds to complete, during which I'd like ...

Why can't I assign variable value directly?

I am new Objective C. I am trying to understand and workout problems from Stephen Kochan's Programming in objective c 2.0. This problem is from chapter 8. What I don't understand is: why can't I assign variable values directly when I can get them. For example: This does not give me a error or warning. But it also does not set the v...

popup targeted for iphone

This is pretty self explanatory. How can I target only iphone for a popup. ...

What function is definitely to be called in UIViewController whenever the view is shown?

What function is definitely to be called in UIViewController whenever the view is shown in iPhone application development, including after hitting the "last view" button in a NavigationViewController? I am getting some unsynchronized information with views using NavigationViewController. I am wondering if I can place a function call to ...

Access iPhone GPS coordinates

Basically what I am trying to do is get access to the gps coordinates on the iphone 4. I'm not creating any type of web app. I can't find too much other than the geolocation api, but that seems to be geared toward creating web apps. Is there a javascript function that I can call from the phone itself that will return its own gps coordin...

Trying to get MKPolygon overlay working

Hi All, Trying to figure out this MKPolygon working. I've created a whole heap MKMapPoints and placed them into an array. Then I make a Polygon out of them with: [MKPolygon polygonWithPoints:pointArr count:sqlite3_column_int(countStatement, 0)]; and add that to an Array for retrieval later. Later I loop through the array and add ea...

iphone memory management (basic)

Very basic question about iPhone memory management: Say I have a viewController with several subviews also controlled by viewControllers. When I remove the top viewController and release the instance - what happens to its children? Are all the therein contained objects released as well? When I run my app in instruments, I don't get any...

How can I make a View scrollable in iPhone?

I want to make a long view, for example, 3200*240, whatever. Now, I want to the user display from start from 0,0. When the user scroll right, the x index will increase 320. So, I need a scrollView on top of the UIView to detect the scroll? Also, I need to have a UIScrollViewDelegate, right? thank you. ...

Is it possible to publish application in AppStore which will accept credit card payments?

My company provides eCommerce solution for our customers. We host their web site where their customers buy some stuff. Our eCommerce solution takes their credit card information and processes it via payment gateway. Now we want to create iPhone app for our customers somewhat duplicating functionality of their web sites. Similar to what ...