iphone

Serialization with objective-c

Hi, I'm doing a iphone application and when the user quit the application and return in the application later, I want he return at the same place in the application before he quit. How I do this? Is it serialization? thanks Alex ...

send message to multiple objects at once (objective-c)

(or set multiple objects with one value) Is there a way to send multiple objects one message in one line. So like [someObject, otherObject reset]; like in LUA scripts (which I believe is C?) you can set mutliple objects: someThing, otherThing = 1 , 0 ...

MKMapView cached tiles

Hi all, I need to clear the cached tiles stored by the device every time I load a new region does anyone know how to do this? Many thanks Jules ...

UIButton to "view all our apps"

We are trying to add a UIButton to out iPhone app that will direct users to the iStore to show a list of all our apps. We got the button to display an NSLog() so we are almost there. Is there a "search by company name" link we can redirect users to? (Automatically opening the user's iStore app.) What would that code look like? Thanks...

User can't quit the iphone application?

In a iphone apps, is it possible to stop the user when he want the quit the application with the home button, so, the user can't quit the application and I close the application when it's the time? thanks Alex ...

develop iphone application in arabic language

hi, how can i develop an arabic iphone application?it is included in all iphone sdk?and how to use it? thks ...

How to get the name of the backgroundImage from a button?

Hi, i´ve created different buttons and initalized them with an array with photos as backgroundImage. UIButton* myButton = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [myButton setBackgroundImage:[UIImage imageNamed: (NSString*) obj ] forState:UIControlStateNormal]; [myButton addTarget:nil action:@selector(buttonDown: ) forContr...

Alert when leaving/login WebView for my site

I have an app using WebView. when the user clicks the login button from the Webview(loginpage.php).he have to redirected to my application with the login credientials. i have tried this URL but i cant resolve my problem. http://www.iphonedevsdk.com/forum/iphone-sdk-development/41113-alert-when-leaving-webview-appstore.html (BOOL)webVi...

Setting UITextField Delegate Using Interface Builder and Not Updating the Header File

I am stepping into the deep waters of IPhone development. I have the following header file. // // FirstProjectViewController.h // FirstProject // // Created by Mohammad Azam on 6/25/10. // Copyright HighOnCoding 2010. All rights reserved. // #import <UIKit/UIKit.h> @interface FirstProjectViewController : UIViewController<UITextFi...

Hidden UITabBar

I'm writing an app that has a 5 item TabBar. When launching, I want the app to show the contents of the view for the first item, without showing the Tabbar. I want a hidden button to cover the full screen so that when I tap anywhere the TabBar pops up from the bottom. I then want it to hide itself again after a few seconds. I guess i...

Avoid Video Compression when Selecting Movie with UIImagePickerController?

I'm using UIImagePickerController to allow my user to select a video from the asset library. When the user selects the "Choose" button on the second screen, the view displays a progress bar and a "Compressing Video..." message. Why is this happening? Is there some way I can avoid this compression operation? ...

Recording with Remote IO

I've looked at aurioTouch but I wanted to do away with the UI and the playback function. Also looked at http://atastypixel.com/blog/using-remoteio-audio-unit/ but so far with no success. Appreciate if someone can point out any issues in my code. // configure audio session sampleRate = 44100.0; // Hertz AVAudioSession *mySession =...

How do I detect that a hardware keyboard is attached to an iphone?

I've been digging around in the reference library and just can't seem to find the answer here. I'm assuming there's some API somewhere that I can query to find out if an external hardware keyboard is in use or not. Update I just tried the EAAccessoryManager.connectedAccessories from the ExternalAccessory.framework. That was a no-go, it ...

NSDate time or !time in it

Is it possible to see on a NSDate whether the time part has been set or not? Or to rephrase the question: is it possible to create a NSDate in such a way that when I look at the instance I can see whether the time was set or not? I am having an issue where I read sometimes DATE and sometimes DATETIME from a database. In both cases I c...

Toolbar above a TabBar view problem

I have an application with several views including a Tableview, navigation bar and a separate pickerview. I've just added a ToolBar into the PickerViewController which is in a TabBar and it recognises it and lets me connect the (3) buttons to IBActions. It looks great in IB and the IB Simulator but when I Build and Go the ToolBar disapp...

How should you control font size on an iPhone web app (using CSS)

With both iPhone3 and iPhone4 with vastly differing dpi I'm wondering how to approach setting a base font size with an iPhone web app. Essentially, my approach will probably be to use em sizes throughout but what is the best way to set the 'base' size in the body selector. (Unfortunately, I'm still waiting on my arrival of iPhone4 so I...

Game Design - Reusing an objects properties?

I am new to Obj C, but have developed many types of games in Flash. I have multiple squares (UIImageViews) that have the exact same properties; can be collision detected (converted to CGRect) can have a background image (image.png) can set an int variable on itself to set state (0-3) can be a type of square represented by another int v...

Can i access iPod Library on simulator?

I am trying some code to open iPod Library using simulator but app crashes with this error MPMediaLibrary: Unable to launch iPod library server: application not found Do i need real iphone to test this code? ...

How can I get --webkit-tap-highlight-color to highlight an entire DIV?

I'm struggling to get iPhone OS4 to produce the default tap highlight on a DIV, in a UIWebView (ie embedded in an application, not in Safari). The markup is: <a href="..."> <div class="item"> <div class="imgWrapper"> <img...> </div> <div class="Title"> Title text </div> </div> </a> I'm aiming for a display that looks like th...

changing the title of standard tabbar icons

Hi, Is that possible to change the title names for standard tabbar icons provided by apple. Say for standard download the icon is like a down arrow with a text download, when i try to change the title in the interface builder it is not getting reflected as expected. Instead the icon is changed to question mark ...