iphone

webview paging and book reading

i am new developer in iphone how to paging in webview and not scrolling + i'm trying to implement ibook style like ipad book reading ...

How to exit an iPhone app if the terms are rejected?

When the user selects "Reject" on my Terms and Conditions page, I'm able to display an alert, but I can't figure out how to exit from the application completely. Is there a way to do that? ...

Use accelerometer in a tab app

Hello, I would like to use the accelerometer in a tab app. All three tabs would access the current x,y,z and change an mage based on that data. My problem is where does the initialization of the accelerometer go so that all three tabs can update based on the data? The update only needs to happen when you are in the current tab. I can o...

could not locate an NSManagedObjectModel for entity name

Hi, This is the code for toggleAddProject method, the Core Data code is almost the same as found in Apple's CoreDataBooks sample, however when I click the add button the app crashes with entityForName: could not locate an NSManagedObjectModel for entity name 'Project' on the line starting with newProjectController.project -(IBAction)t...

Toolbar with SearchBar IB iphone.

Hey, I have a question... I'm developing an app for the iphone and I want to place a search-bar within a toolbar in IB. I wasn't able to place the search bar into the toolbar directly as there is some conflict when setting a search-bar as a barButtonItem. My solution to this was placing a view as a BarButtonItem and then placing the Se...

who released my object on the handler file?

Hi guys, I'm a newbie on the iphone development world.. I started a new project, I used it to test what I learned about objective c, it basically sends and recives data from my local server, then, I store some of that data inside the class, it works fine. Everything is on the command line. my class definition: @interface MyClient : N...

how to implement drop down menu

i have to select one category from drop down menu when i press a field ....without using picker view... ...

UINavigationController / reloading views / working with views!

Hi stack overflow! I have a view based project working with a UINavigationController. The RootViewController performs operations for writing to a data model when a new entry is made. I have an add (+) button on my main screen that adds an entry with a timestamp and records this to the data model. I want to click the add button, brows...

Subclass of NSObject as target in addEventListener statement

When setting the method of a button call or adding an event listener in objective-c, one normally sets the target to self. However I have a subclass of NSObject named CALLS, separate from the main file. This subclass has a void called METHOD_NAME which should be executed. THe first question is would the void be +(void)METHOD_NAME or ...

SIP Stack iPhone

Hello all, Does anyone have any docs/guides/code samples on implementing an SIP based IP or video connection on the iPhone? I am looking for a place to start, Google is not being friendly on this one. Thanks in advance, Rob ...

problem with user defaults when saving a game... (int array)

hi! i have a problem with saving something and am officially out of ideas. what i want to do is save an integer array into the userDefaults, then when restarting the app loading this array and restart the game from this last point. what i do is that after each turn my AI logic saves the actual game state into an array -> so far so goo...

EXC_BAD_ACCESS while removing MKAnnotations

I am writing an iPhone app where the user is supposed to be able to turn on and turn off all the pins on the map. To put all the pins on the map I use: -(void) putAllPins { for (id key in myDictionary) { //A NSDictionary NSArray *data = [myDictionary objectForKey:key]; [self putPin: data]; } isShowingAllPins ...

Set up UITableView in a view based applicaiton

Hi! So, I have a View Based Application where i want to add a UITableView but i don't know how i can do it. :/ thanks for your help ! ...

Push Notifications not working after update to iOS 4.01

Push Notifications for a clients app were working fine on iOS 4 but when users update to iOS 4.01 they can no longer register for notifications. It looks like the phone running under iOS 4.01 is unable to generate a Device Token to give to the app. The app still shows up under the Settings->Notifications menu as being ON. Google tells ...

Keep 1 fixed UINavigationItem.RightBarButton in place throughout all views that are pushed to a UINavigationController

I would like to have a UIBarButtonItem that is in the right side of the UINavigationBar that is on all views that get pushed into a UINavigationController. I know how to set it on a view by view basis by putting it in each view's UINavigationItem.RightBarButton property but when I push or pop a view off the stack I would have to reset th...

AVFoundation question - iPhone SDK

What's the best way to grab a succession of images from the camera using the AV Foundation framework? I am only interested in what an iPhone 3G can support. I haven't been able to find any information on which classes are not supported on the iPhone 3G (without video capability). Has anyone had any experience with this? Many thanks, Br...

iPhone/iPad app using keyboard shortcuts?

With the availability of keyboards for iPads and iPhones, it makes sense to add keyboard shortcuts to apps now. Is it possible to do this in an app? What are the relevant APIs? ...

Non-iAd App Submission Problem

I'm tring to submit my app to the App Store, but I keep running into the same problem. When I go to iTunes Connect and click "Manage Your Applications", I get a window that says "You have no Applications Uploaded." So, I assume I need to add a new application, so I click "Add New Application". However, when I do so, I get the followin...

Problem zooming into UIImageView

I am following Apple's ScrollSuite example, however pinch to zoom is not working. I am not sure whats wrong: // Implement viewDidLoad to do additional setup after loading the view, typically from a nib. - (void)viewDidLoad { [super viewDidLoad]; // set up main scroll view imageScrollView = [[UIScrollView alloc] initWithFram...

Assigned value is garbage or undefined logic error in XCode

I am updating our iPhone app to iOs4 and I ran into an issue "Pass-by-argument in function call is undefined" in the code for (i = 0; i < self.numberOfSegments; i++) { [self setWidth:round(width[i]) forSegmentAtIndex:i]; } Which is fair enough, width[i] hasn't been initialized. Updating the code (below) however gives me this...