iphone

how to navigate application using MKMap View in Iphone?

Hi, In my iphone application i have used MK MapView to navigate from different pages. But when the MKMapView controll run at that time the the control is not going back again in the application.so i am loosing the application flow,and i have to run the application again. /* [[UIApplication sharedApplication] openURL:[NSURL URLWithStri...

How does iStat for iPhone get the WiFi MAC & task list

Hello, iSTat shows a list of running tasks and also shows the Mac address of the Wifi connection. I understand that there's a way to get the Mac address via NSHost but it seems to be a private API. Also the task list is a mystery to me. Where do they get all that information from? Thanks! ...

MPMoviePlayerController and next button

Hello, I would like to use MPMovieplayerController has a playlist player. so my question is did you success to acheive this ? How to catch when user clicks on next button ? I tried MoviePlayer from apple sample code, in order to add overlay, but it does not help for he next button. thanks for your help. Thierry ** my sanwer ** I c...

Create pitch changing code?

Does anyone know how I could record some audio on the iphone then change the pitch of the audio? ...

trouble popping view controller off of UINavigationController

I'm having trouble popping a UIViewController off of a UINavigation controller even though the reference to the nav seems to be correct and a count on viewControllers shows the right number. I have a UINavController that gets it's first UIViewController set and then the nav controller is presented in a modal view: workoutNavController....

iPhone: Nib files not working correctly when copied with *.m & *.h files from 1 project to another

I've been building projects in pieces, prototyping different aspects of the whole in separate demo projects. I'm now in the process of migrating class and nib files from the prototypes into the target project and when I do so the nib files aren't behaving as they did in the prototype. I've been doing the migration by using the "Add Exist...

Xcode iPhone OS multiple versions

Is there a way to add earlier versions of iphone os in xcode 3.1.2, so I can build by app for different os versions? ...

Iphone Tableview Change to a diffent View when editing

I have a TableView that I want to change to a different view (View1) for editing the data for that row when editing is true. When editing is not true I use the didSelectRowAtIndexPath to change to a different view(View2) loading the information from the selected row. An example of this is if you go to the built in clock select alarm, s...

How to call Objective-C from Javascript?

I have a WebView, and I want to call a view in Objective-C from JavaScript. Does someone know how I can do this? ...

UIWebView finished loading Event

Hello, is it possible to start an event when an UIWebView (Iphone) has finished loading the URL. How can i find out, the current URL of the UIWebView? Best regards, Andreas ...

How to define a BOOL constant?

I know how to do it for a float: #define kMyConstant 1.0f but how could I do that fora BOOL value? ...

Web application on an iPhone - styling it to look like native iPhone app

Hi, I saw some web pages display diffrently on an iPod Touch (and iPhone) - they pretty much looked like the native iPhone apps. Think this can be done with styles and, optionally, rendering diffrent HTML on the server side, based on the user agent from request. So, how do I get this effect? And, also, is there any emulator of iPhone...

Where do I have to declare static variables?

i.e. I want to bring this in my code: static BOOL MyConstantBool = YES; Must it be before or after @implementation? Are there rules where to place that? Can it also go into the header file? ...

Custom UIButton for Iphone.

I have an view in my App which has a number of buttons based on the number of items returned by the server. So if the server returns say 10 items, there should be 10 buttons and clicking on each button should call a different person. For the above purpose I created a custom button class deriving from UIButton. @implementation HopitalBu...

RootViewController

I'm learning this right now so the questions might be a little juvenile. Here's what I'm trying to do. I have the first view come up with a cell of the table populated statically, when you select one of the cells it will pull up a form to input data. Now, I've been reading the documentation about navigation buttons and navigation in ge...

iPhone Network Connection after kIOMessageSystemHasPoweredOn

I've built an app that runs in the background (jailbroken phone, Ver. 3.0/7A341) that checks my website every hour. When the device goes to sleep, I set a time to wake up if it stays asleep My app wakes up fine, then tries to make a network connection, but no luck. I've tried what iphone-3g-connection-enabling recommends (NSURLConnecti...

Renaming Rootviewcontroller

Here's another very basic question. Is there an easy way to rename the rootviewcontroler? Say I decided that I needed to add a page before the current rootview (splash page, mini data snipits from the main app, ect.) How hard would it be to create another rootviewcontroller? I guess you would just take the current one and edit out lots o...

Handle empty structs in Objective-C (Coordinate in custom class)

I have a custom class that has as an instance variable of a coordinate: CLLocationCoordinate2D eventLocation; @property(nonatomic) CLLocationCoordinate2D eventLocation; I'm parsing an xml file that has an optional field that may or may not be there. If it is i set it like so: CLLocationCoordinate2D location; NSArray *coordinateArray ...

Is it good style to declare methods in .h when they're intended to be overwritten by subclass?

I have a class which is intended to be abstract. This means: When someone subclasses it, a few methods MUST be overwritten. But on the other hand, those methods are not intended to be called manually from anywhere except inside the abstract class (the superclass of the subclass). Must I declare these methods in .h anyways or can I just...

Escaping backslashes in method call stringByReplacingOccurrencesOfString Does not work in Objective C

This line of code does not produce the result I am expecting. NSString *tmpstoryTitle2 = [tmpstoryTitle stringByReplacingOccurrencesOfString:@"\"" withString:@"\\\""]; I am attempting to change a string like this: hello, "this" is my string. to hello, \"this\" is my string. With the code above. However, the output I get is: hell...