iphone

UITableView - Loading data from internet

Hey. I have seen many apps that load data to UITableViews from the internet, and they usually load smoothly. Now it's my turn to load in that kind of data. I am getting different data at the same time, separating categories with ~ and pieces of categories with #. This works great, and I have managed to separate the data in obj-c perfect...

Is this a bug in the documentation? -existingObjectWithID:error: or -objectWithID: seem to claim different things that don't match

From the docs: -existingObjectWithID:error: If there is a managed object with the given ID already registered in the context, that object is returned directly; otherwise the corresponding object is faulted into the context. This method might perform I/O if the data is uncached. Unlike objectWithID:, this method ...

What's the difference between -existingObjectWithID:error: and –objectWithID: ?

What's the difference between -existingObjectWithID:error: and –objectWithID: ? ...

iPad/iPhone google maps mash up

I would like to create my own google maps mash up exactly like wundermaps but with different data. How can i go about doing this? http://itunes.apple.com/us/app/wundermap/id364884105?mt=8 ...

Singleton class in objective c

Hi; I have create a SinglestonClass in my code but i have a problem. My variable are initialized in the -init method but when i call the singlestonClass these variable are re-initialize. Can you help me for create a single initialization for my variable? thanks. @implementation SingletonController @synthesize arrayPosition; @synthesize...

How to make my iPhone app compatible with iOS 4?

Hello, My iphoneos 3.1 based application is not working on iOS 4 GM: the camera is not showing in full screen, it doesn't correctly detects compass information, the uiwebviews doesn't respond to touches (they don't scroll), and so on. It's completely broken! Now my question is: how can I develop an update using the latest xcode with sup...

Objective-C (iPhone) Memory Management

I'm sorry to ask such a simple question, but it's a specific question I've not been able to find an answer for. I'm not a native objective-c programmer, so I apologise if I use any C# terms! If I define an object in test.h @interface test : something { NSString *_testString; } Then initialise it in test.m -(id)init { _test...

build IB pointers to existing objects in interface builder without iboutlet

is there any function to init an UIButton with a button from Interface Builder without using IBOutlets? i have 20 buttons in my view and i need to modify their image without declaring 20 pointers. i think it would be something like: UIButton *but=[[UIButton alloc] initWithButtonTag:20]; [but setImage:[UIImage imageNamed:@"myIm...

Changing the title of a UITabBarItem without changing the view controller's title

Hi I wish to have it so the view controller's title is different to the tab bar item's title. I have tried the following, inside viewDidLoad [self setTitle:@"My title"]; [[self tabBarItem] setTitle:@"Search"]; But the call to the second function doesn't seem to work ...

Find out when all processes in (void) is done?

Hey. I need to know how you can find out when all processes (loaded) from a - (void) are done, if it's possible. Why? I'm loading in data for a UITableView, and I need to know when a Loading... view can be replaced with the UITableView, and when I can start creating the cells. This is my code: - (void) reloadData { NSAutoreleaseP...

SearchBar in iPhone Application

I have an application for iPhone which requires a search page to search a perticular location. I have created the search view and the main view also. But I'm facing problem when i'm trying to bring up the search view and also when trying to go back to the previous page with the selected cell content.My application is a Tab Bar Applicatio...

Xcode - Drawing Pixels

Hi guys; I am trying to draw individual pixels in xcode to be outputted to the iphone. I do not know any OpenGL or Quartz coding but I do know a bit about Core Graphics. I was thinking about drawing small rectangles with width and height of one, but do not know how to implement this into code and how to get this to show in the view. Any...

How to debug memory allocation issues?

Hi I am writing an iPhone app that that is trying to create a second a view when the user clicks on an element in UITableView. The code looks like ReplyToViewController *reply = [[ReplyToViewController alloc] initWithNibName:@"ReplyTo" bundle:nil]; reply.delegate = self; Message *message = [resultData objectAtIndex:indexPath.row]; ...

iPhone. About action target again.

This line of code is in AController.m UIBarButtonItem *addButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(addItem)]; And - (void) addItem:(id) sender; is also in AController.m If I want to call a method - (void) addItem1:(id) sender; in BController.m, how...

Xcode, iPhone: How to detect simulator target at compile time?

I wonder if, when building an iPhone app for the Simulator, there are special DEFINEs added that allow me to conditionally compile for this case? If not, I'll have to add my own targets for this case, but I'd rather have an automatic way of detection. Alternatively, is there a dynamic way to know when my code runs on the Simulator, I m...

Do I need to answer "yes" to the Encryption used question in the app store submission process as I am using Three20 library?

Hi, i am going to submit my application to Appstore. i have one question as i am using Three20 library in my project to load thumbnail images from server. My question do I need to answer "yes" to the Encryption used question in the app store submission process? while review the library i found Three20 library using md5 encryption so...

How to position a UIToolbar at the top of the screen?

I've figured out how to hide the navigation bar and then show the toolbar it has built-in but the toolbar appears at the bottom os the screen how can i position the toolbar on the top of the scren? here's some of my code UIBarButtonItem *yesterday = [[UIBarButtonItem alloc]initWithTitle:@"Yesterday" ...

Determine if user navigated from mobile Safari

I have an app, and I'd like to redirect the users to different pages based on where they are navigating from. If navigating from web clip, do not redirect. If navigating from mobile Safari, redirect to safari.aspx. If navigating from anywhere else, redirect to unavailable.aspx I was able to use http://stackoverflow.com/questions/273876...

iPhone OS 4 Multitasking - Playing Audio In background

Hi, I am trying to use iPhone OS 4.0's multitasking capability. I tried to play audio in the background with no luck. I added UIBackgroundModes property in info.plist and mentioned requires audio to play in background. Also I added the code for playing the audio. ` NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForReso...

publishing iPhone apps without owning a website and tax details?

Hi All, I am iPhone developer from india and want to publish my iPhone apps to app store using Apple's "Indivisual Developer" program. But the catch is i dont own a website, can i publish an iPhone app without specifing a support website at iTunes connect? Is it must to specify a website there? Also, as i am non US resident. What shou...