iphone

What are the best practices for converting existing iPhone navigation systems into a Split View navigation?

I am trying to figure out how to best convert many of may apps to Split View apps for the new iPad. What are some of the best ways to go about this, minimizing the amount of transition code needed? Remember, the code is under NDA, but discussing generalities on the design architecture is not. ...

NSFetchedResultsController not showing updates from other contexts

I have an NSFetchedResultsController set up to populate a UITableView, based off my 'main' NSManagedObjectContext. In a timer, I continually add objects into a separate NSManagedObjectContext, but one that shares its NSPersistantStoreCoordinator with the main context. I can see NSManagedObjectContextWillSaveNotification notifications b...

Howto start writing iPad applications?

I know Objective-C from Desktop Apple Programming. But i want to jump on the iPad bandwagon and start developing some small edutainment applets. Is the iPad API the same as iPhone just with more power? Do i need to join the iPhone developer program and does it still start with $100. Is there any iPad emulator yet? ...

objective-c (iphone sdk) access instance method from separate class

Hi guys I know this is a pretty well posted thing to do, but I still can't work it out. I have an instance method saveAllDataJobs in Jobs.m. - (void) saveAllDataJobs { ... } I am in DetailViewController.m and I want to run the method saveAllDataJobs, which is in Jobs.m. What precisely do I need in order for this code to run. Sorry f...

how to implement a picture wall with iphone

http://img2.mtime.com/mg/2010/2/a3862303-825b-4adc-a3f8-e7b95d00b507.jpg i just want to know how to implement the 3D wall that the picture above shows. Could anybody give me some tips? ...

iPhone Simulator chrashes in NSKeyedUnarchiver after setting base SDK

Hi! I started a project in xcode (3.2 on snow leopard) with base sdk 3.1.2. Now I changed this setting to 3.0 and it compiles without a warning. There are no problems running the app on the device, but the simulator crashes on launch every time with the following exception: Terminating app due to uncaught exception 'NSInvalidArgument...

iPhone, duplicate method message after hardware rotate?

I am pretty sure what I am seeing is how this is supposed to work, but I as just curious as to why. When I rotate the iPhone in the simulator the method (see below) that allows the orientation gets called twice with each single rotation. Is there a reason for this? -(BOOL)shouldAutorotateToInterfaceOrientation:interfaceOrientation ED...

iPhone: monitor data (internet) usage

is there a way to monitor how much data(internet) each application used? if I cannot monitor applications is there a way to get all internet requests information? (get data passed, url, etc) (I would like to use this info in an app Im developing for iphone) Thanks ...

Why does SQLite not bring back any results from my database

This is my first SQLite based iPhone app and I am trying to get it to read a menu hierarchy from my database. The database appears to be registered fine as the compiled statement doesnt error (tried putting in valid table name to test) but for some reason sqlite3_step(compiledStmt) doesnt ever equal SQLITE_ROW as if to suggest there is ...

How to collapse five OpenGL textures into one?

I want to merge 5 "sublayers" to one single texture (you know, somethin' like Flatten Image in Photoshop) in OpenGL ES 1.x iPhone. I'm new to OpenGL, and just haven't find the answer yet. ...

Getting size of the text in a UITextView

Hi, I'm trying to use a UIScrollView as a UITextView, except it will have a logo at the top (thus I can not use UITextView directly). In other words; I will have a UIScrollView with a UIImage and a UITextView in it. The content for the textView is localized and liable to change, so I can not hardcode the height of it. Is there any way ...

Stopping playback on an AVAudioSession on screen lock

Hi everyone, I have an AVAudioSession under a AVAudioSessionCategoryPlayback category. I need to be able to stop or pause playback when the screen is locked. Is there any way to achieve this? So far the only thing that produces an interruption to my audio session is an incoming call. Thanks in advance! ...

Sequentially presenting a uninterrupted series of Modal View Controllers

I have view controller which does some animation action for a specified time with supplied data and then pops. Now I want to use this very modal view controller with a collection of data. So each get presented after the earlier ends sequentially. I can't figure out were to trap the end of the earlier cleanly so the users sees a series...

iPhone - Remove all SubViews?

When my app gets back to it's root controller, in the ViewDidAppear I need to remove all subviews. How is this done? ...

Calling UIView#presentModalViewController while upside down shows modal slide from top?

I've got an app where I'd like to support UIInterfaceOrientationPortraitUpsideDown orientation -- basically, to hold the phone upside down. What I'm seeing is that when I use UIView#presentModalViewController, the model window slides in from the top instead of the bottom. It works fine in both landscapes mode and the normal portait mod...

NSKeyedArchiver file - losing data problem

Hi, Using Iphone SDK 3.1.2. I am saving some info to a file using NSKeyedArchiver object. I have 4 keys. I read data from the file for all 4 keys on applicationDidFinshLaunching and write back to the file (all 4 keys) on applicationDidTerminate. Also when the user saves any info i write the data for the particular key its for. In case ...

Is it possible to change UITextInputTraits while a UIKeyboard is in view?

Hiya! I want to change the UITextInputTraits of a keyboard while it is in use.... My ideal code would look something like this: - (IBAction)nameTextDidChange:(UITextField *)sender { if ([sender.text isEqualToString:@""]) { sender.returnKeyType = UIReturnKeyDone; } else { sender.returnKeyType = UIReturnKeySearch...

UISegmented Control does not refresh after selectSegmentIndex = 1 is set;

Hi, I have a tableview with custom cells in it one has a UISegmented control in it. in the cellForRowAtIndexPath method I create the cell and attempt to initialize the segment controller but it doesn't change whats displayed in the cell, what am i missing.. code below. segcell = [self FRCell]; [segcell setSelectionStyle:UITableViewCe...

Need some help with Reachability (2.0.3ddg)

When my app launches, I check for reachability because I need an immediate internet connection. My problem, though, is that it appears there's no immediate confirmation for the NetworkStatus, which means right after the Reachability is setup, I check whether there's a connection, and it returns that there isn't, regardless of whether I a...

iPhone SDK: Transparent tableviewcell isn't transparent?

I have a UITableViewController that has a background image. I am setting the image for the tableview like this: [self.view setBackgroundColor: [UIColor colorWithPatternImage: [UIImage imageWithContentsOfFile: [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent: @"background1.jpg"]]]]; The problem is, each of my custom...