iphone

Calling a function from a different view controller for iphone

Hi All, I have a problem where I want to call a function defined in one view controller from another controller. I'v try what seems llke a hundred different setups and nothing seems to work. I've posted the basic code and was hoping someone could tell me how they would do it. Basically all I want to do is call the MYBPress function defi...

Objective C Convert int to NSString (iPhone)

I have the following code that is meant to convert milliseconds into hours, mins and seconds: int hours = floor(rawtime / 3600000); int mins = floor((rawtime % 3600000) / (1000 * 60)); int secs = floor(((rawtime % 3600000) % (1000 * 60)) / 1000); NSLog(@"%d:%d:%d", hours, mins, secs); NSString *hoursStr = [NSString stringWithFor...

How do you properly set up a secondary view to support a navigation Controller on the iPhone?

I have an iPhone app that shows a simple view (View 1) that has a button. When the user presses this button, View 2 slides into view using the call [self presentModalViewController:self.view2 animated:YES]; I want View 2 to support a navigation controller. All the code I find tells you how to set up a Navigation Controller App, but I ...

how to find what hook/method is being called in a framework

hi all, I was wondering how should I proceed to debug while working with frameworks. Like specifically how can i tell which method is being called when a particular event happens. thanks raja ...

How to create an timeline on iPhone

Hello, I am trying to create an inifite timeline in my iPhone app to scroll through time. I think I am going to use a UIScrollView to do that but I am not sure how to do that. Am I supposed to create a reusable queue of views from scratch with views containing the days/months/years and reuse them when they go out of the screen ? (I have...

Problems connecting a simple iPhone button

I'm trying to create a normal rounded rectangular button in a new iPhone app (I'm an iPhone noob). I created the button (Set Start Date) in interface builder and am trying to hook it up to my view controller (CalendarViewController) in order to change the current view. I want to change the active view to StartDateView. I've been looki...

Changing color of section header in UITableview

Hello, i have pretty simple simple question (i hope so). How do i change the section header color in a UITableview from default blue to black transparent? Thanks in advance. ...

iPod library: obtain the filename of a media item

I have several questions regarding filenames and the "iPod Library". I understand I can retrieve MPMediaItems from the "iPod Library". How may I get the filename of a MPMediaItem? (I only need to read the filenames, not save to or otherwise modify the library.) When an mp3 is added to the iPod library (via iTunes), does it keep ...

iPhone: How to fix a legacy iPhone app which has really bad memory management? unittesting?

Hi, I recently inherited an iPhone app. The original developer did not understand memory management and well the app works in simlulator but not in on old iPhone (lots of crashses). Do you have any thoughts on the process by which I can save the app? Can I utilize or create any unittest to find memory leaks and make the process 'scien...

iPhone SDK Core Data or a 2D Array

I have a data set that is around 700 rows with eight columns of string data. Is it worth setting up core data? Will I see a huge performance difference if between Core Data and an array? The app is a simple UITableView and and a couple of drill down style detail views. I will be searching the data set on one of detail views. ...

iPhone keyboard tweak

Hi there, I would reduce the time to get special characters when keeping a touch on the keyboard. Anyone has a clue? Thanks. ...

What's wrong with how I'm accessing NSSet from my ModelObject?

Hi all, I've been trying to get to grips with Core Data and I'm having some difficulty with my fetched results. The problem is that I have 'Branch' objects which have a to-many relationship to 'Telephone' objects. When I return a 'Branch' and try to access all related 'Telephone' objects from the returned NSSet, I seem to only get one ...

Automatically Restart WebApp after a phone call on an iPhone

I have an iPhone WebApp that is installed to the home page. When a phone call comes in or an email is sent it brings up either the phone screen or the email screen. After the user finishes the phone call or email, is it possible to automatically bring up the same web application that was previously open? ...

What's the proper NSDateFormatter format for this string?

February, 26 2010 21:34:00 Based on all the documentation I can find, MMMM, d yyyy H:m:s should be correct - but my NSDate dateFromString is returning null. ...

Easy custom UITableView drawing

All, I found the code in Matt Gallagher site ( http://cocoawithlove.com/2009/04/easy-custom-uitableview-drawing.html ) for this really neat design for a Table View... Im very new to Cocoa and Im having a hard time figuring out how to wire the darn thing in IB... I loved the design and wanted to use something similar in a more compl...

Will this JQuery plugin work in the iPhone and Android browsers? (they use webkit)

I want to use this LazyLoad plugin for JQuery. http://www.appelsiini.net/projects/lazyload But, they say this at the bottom of the page: Due to webkit bug #6656 Lazy Loading wont give you any improvements in Safari. It will load all images you wanted it or not. It seems jQuery 1.3.x breaks the plugin for IE. All images ...

Navigating iPhone Views/ViewControllers

In my iPhone application, I use a Tab Bar Controller with five items for the main navigation. However, I also need additional ways to change the current view. For example, if the user is on the Calendar tab and clicks on a date, they need to be shown a different view. In order to implement this (and other) types of custom navigation, ...

Core Data Automatic Update Inquery

I have a question concerning Core Data and how, if at all, Entities get updated automatically. Basically, let's say I fetch some data X. X has an inverse to-many relationship with Y. Then a method get's called to update an attribute in X. Does one have to fetch the data again? or will X automatically get the updated data? If this is no...

Two iPhone Apps sharing information

I am building a series of games for the iPhone that are released in 'episodes' that are purchased separately. I'd like each of the Apps to share a small bit of information, but Apps seems to be sandboxed pretty tightly. Is there an official way for two apps to share information that doesn't involve hitting an external server? I only...

Protocol Methods not Recognized When Implemented in a Category

I have a view controller class that has to implement several protocols. Too keep things neat I have a habit of putting each protocol's methods in a category on the view controller class. This time I am getting warnings from the linker that the class does not implement one of the protocols. The methods do work at runtime, the linker jus...