iphone

How to get a "first time open"-view for my app?

Hello, I'm trying to find a way that my program will show up a "setup"-view, when you first start the app, but it doens´t works. Here is my attempt. The appdelegate should look, if the program opens the first time (abfrage = false) and open an other view. #import "TweetButtonAppDelegate.h" #import "TweetButtonViewController.h" #import...

Data Persistance in iPhone Applications

In the development of my first serious iPhone application (Meaning I'd like to actually get it out on the AppStore), I needed a good way to represent my data. Instead of going with core data, I (stupidly, I think) decided to use classes to represent my data. I created three classes, MMDot, MMShowMovement, and MMShow. The MMShowMovement ...

Core Data "Upsert" from SQLite Database

I am currently writing an App that needs the ability to modify and persist various pieces of data. I've decided to use Core Data for this purpose. When the user opens the Application for the first time I need to import a large amount of data from a sqlite database, this data consists of the many-to-many relationships. I'd like to find ...

How do I associate events with an image view?

Hello I have an app with an image view. When the user clicks on this view I want to run some code which will change the colour of a label and then hide this view I have everything setup in the interface, i.e. Outlets etc, but I dont see any events available to associate Can anyone help or point me in the direction of a good tutorial ...

Load an other View from applicationDidFinishLaunching in the AppDelegate

Hello, I have this code in my applicationDidFinishLaunching in the AppDelegate: - (void)applicationDidFinishLaunching:(UIApplication *)application { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; NSString *firsttime = [defaults stringForKey:@"firsttime"]; if (firsttime == nil) { BenutzerdatenViewCon...

UITextField leftView

Is it possible to set up a UITextField with a leftView so that if a user clicks into the UITextField the keyboard shows but if they click on an icon in the leftView another method is called (i.e., one that displays a UIPickerview)? ...

Accessing Another View Controller IBOutlet from App Delegate

I have a tab bar app. One of the controllers is a "preference page". What I am trying to do accomplish is access the uiswitch ivar that is on the "preference page" controller from the app delegate's applicationWillTerminate method, however I am only getting the default IUSwitch value. Here is the code: - (void)applicationWillTerminat...

Why there save and load file code works on iphone simulator but failed on device.

(void) loadDataFromDisk { NSMutableData *data = [[NSMutableData alloc] initWithContentsOfFile:[self pathToDataFile]]; NSKeyedUnarchiver *unarchiver = [[NSKeyedUnarchiver alloc] initForReadingWithData:data]; _cells = [[unarchiver decodeObjectForKey:@"Board"] retain]; [unarchiver release]; [data release]; } (void) ...

How to get a counter of an UITextView?

Hello, I want a counter that shows in a UILabel how many charachters the UITextView has. I tried this: IBOutlet UITextView *twittermessage; UIActionSheet * loadingActionSheet; IBOutlet UILabel * anzahl; Here the .m: - (void)textViewDidChange:(UITextView *)twittermessage{ int count = [twittermessage.text length]; anzahl.text...

Using regexlite to parse <a href src="">Links</a> out of a NSString

Hello, I am writing an iPhone app that has to pull raw HTML data off a website an grab the url of the links and the displayed text of a link. For example in the like <a href="www.google.com">Click here to go to google</a> It would pull grab url = www.google.com text = Click Here to go to google I'm using the regexlite library but i...

OpenGl es view and uitableview

I have written an application using opengl es view. Now I want to add a uitableview to display on the screen. However I am needing some guidance on how opengl es view and the other views play together nice. For example I have read some things that would lead me to think I need to pause the opengl view when the table is displayed. Can...

How my app save and open photos from the iPhone's photo library?

How can I save and open photos from the iPhone's photo library from my app? Code would be helpful. ...

presentModalViewController in viewDidLoad on first launch

I've been searching around but unfortunately have had no luck. My app requires the user to sign in/sign up the first time he or she launches the app. I know how to determine first launch (using NSUserDefaults) but whenever I try to present the modal containing the sign in/ sign up controls, nothing happens. Here's what I have: -(void)...

View under the statusbar and a 20px white space

Hello, I don´t know what I did, but just recently the hole view is displaced 20px to the top. The effect is, that my UIToolbar is under the statusbar and at the button is a white space. I set the statusbar in the plist to not hidden. But my second view, which is loaded by pressing a button will be displayed properly. Any idea? Thanks fo...

UINavigationController Adding Rows Implementation

I was wondering if with a UINavigationController, can you have a "+" sign, like the Contacts app, that adds a row to the main root view and has a default name as "Setup", then you can click on that row to go to one level below, change a value in a UIPickerview in the one level below UIViewController, and then press the back button and ha...

how to change the background color ,font ,size of the app from single controller to all controller objective-c

i want to change the background color, font, size of the application from same app. from single controller i want to change the appearance of all viewcontroller. ...

UITableView only taking up part of screen

Im trying to make my own calendar similar to iCal and all is going well except for one thing. I plan to have the calendar selection up the top then a table list down the bottom. I can do this but then the calendar is in the same subview as the table and scrolls with it. Although I am currently not using a nib if I build it in a nib then ...

textField hidding under keyboard in iphone

Hello, I am a newbie in iphone development, I have a view with 10 textfields in it, when I tap on a textfield keyboard appears, this keyboard hides textfields and I was unable to see textfielld while editing. I have seen something in UICatalog which moves corresonding textfield up in the view while editing but unable to follow the cod...

Whis is the best technical architcture for iPhone App

I am developing an app, which is huge project. I need to create an architecture for the app, so that I can reuse the code for another client.(app will be template I will change UI only) Thinking to apply singleton pattern, but there are some very good design pattern available like MVC, Factory .... Can any one help to find out which is ...

Return all value in my NSMutableArray

Hi, I usually use this function to display an entry at the indexPath of my tableView: self.audio = (Audio *)[appDelegate.fichesAudio objectAtIndex:indexPath.row]; Or I do that to display the first entry in my Array: self.audio = (Audio *)[appDelegate.fichesAudio objectAtIndex:0]; How can I display all the entries in my array and n...