iphone

go button on iphone textpad

hey how do i capture the event raised when the go button on a textpad with go: this.password.ReturnKeyType = UIReturnKeyType.Go; cheers w:// cross posting from: http://forums.monotouch.net/yaf_postst467_go-button-on-textpad.aspx ...

Differences of behavior in saving/loading file between iPhone and iPod Touch

Hi, I have developed an application (a Sudoku to be accurate) that runs perfectly smoothly on the iPhone (after of course several minor versions to do some bug fixing). But I have had several reports of issues on iPod Touch exclusively. The normal modus operandi is the following: the first start does not load anything from file the ...

Latitude, Longtitude from mapView.userLocation

Hello community, i have the following code to get the userLocation on my app: mapView.showsUserLocation=TRUE; mapView.userLocation.title=@"Aktuelle Position"; that is in the viewDidLoad(); but how can i get latitude and longtitude in from userLocation in the following method?? - (void)locationManager:(CLLocationManager *)manage...

Animate show/hide elements on iPhone

I try to fade the datepicker in and out smootly based on the switch setting on a view like below. I have tried the following in my view controller, but that just turns it on/off without animating. -(IBAction)swithChanged:(id)sender{ BOOL setting = dateSwitch.isOn; [UIView beginAnimations:nil context:NULL]; [UIView setAnimati...

Objective c - anything like c?

Basically I want to try and develop a basic iPhone app. I have 2 - 3 years experience in Java, and am currently studying C now - have done pointers memory management, etc. but very briefly. Is Objective C going to deviate too much from the C that I have learnt so far, so it will be like learning a brand new language? Or should I be able...

avaudioplayer playback progress

Hi, Would anybody have a link to a tutorial to add a playback progress bar to AVAudioPlayer? I've searched extensively on this site and on google to no avail ...

Core-plot Question : How to add a data Indicator

Hello Everybody, i want to add a data indicator line similar to the following image in core-plot. Any idea how i can achieve this using core-plot. I have just started to understand core-plot, so any tip will be very useful. Thanks Edit : For better understanding i have created a screencast to show what i mean : http://www.screen...

Is there a trick to see NSString values in an NSMutableArray in Xcode debugger?

When I debug, I never get the value of an NSString inside of an array. All I see are cryptic symbols, probably memory addresses of something like 0x1dc3753. I dig into all the stuff and expand everything, but no humanly readable value at all. Not really useful at all. How do you go about this (besides NSLogging everything)? ...

Core Data: -deleteObject: Crashes, Are Delete Rules the Cause?

I have the following model, as you can see in the image. My application requires refreshing every instance of B, so at each viewWillAppear, I need to delete all the B's in the model. Upon deleting a B, the cascade delete rule on the relationship to C will delete all C and then cascade to all D. A & E are constants. I have the Delete...

how to use 3D objects in iPhone sdk ?

I want to use a 3D soccer ball and move it with finger touch on the iPhone screen. Can someone help on this. I have done similar thing with 2d image and don't have much experience of 3D. I got some example like converting 3D objects into header file and then use with open gl es framework, however not getting the open GL ES part. Thanks...

Is it possible to insert an animation into an UITabBarController thats shown when switching Views?

I have a custom UITabBarController and I want it to slide out the old view and slide in the new view whenever a TabBarItem gets pressed. I looked at UITabBarControllerDelegate but it just offers me to decide if the view gets displayed not how (via shouldSelectViewController). Is there a way to do that? (My goal is to have a starfield ba...

When is -[UIView drawRect:] Method Invoked?

Is it invoked just before the main view is going to be shown Can we call it whenever we want? ...

How to set the Tab bar item 1 to be selected by default in iphone?

I am new to iphone development.I am creating a view based application.I have added a tab bar in my view(and not a tab bar controller).By setting the tag vale of the tab bar item to 1, 2 ,I have loaded the view for each tab bar on tabbar item click event.I want the tab bar 1 to be selected by default.What should i do for that? here is my...

Webview resizes automatically to portrait and landscape view in iphone

Hi I am new to iphone development.In my app, i want to display the web view in device with c portrait Orientation.It should also support landscape orientation. I used the below method but there is no expected output. - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrien...

iPhone Memory Alert

I have read about this function didReceiveMemoryWarning that actually hasn't really helped. I would like to show a UIAlert View to tell the user that the action he is about to take will lead to problems with memory. So apart from crashing, which is a nasty way to inform the user that there is a memory Warning received, is there a possi...

MoreViewController, edit, noneditable icon

I am using TabBar with more than 5 icons, co I get the MoreViewController as well and can edit icons in the TabBar. But I did not find the option how to forbid editing of one of the icons - similar to More. How can i fixate one icon? In the docu there is description of beginCustomizingItems, which if containing the item, will make it no...

How can a disabled button gets touches ?

Hello all, I was just wondering how can this happen !! In my iPhone application during a http request loading I am disabling a button in the navigation bar . But when I am touches the button three or four times the action method gets called after the loading is completed this means that though the button is disabled the touches are de...

in app purchase question:unable to get product information

hello guys, I have created an in app purchase in itunes connect, since I have not tested my new in app-purchase application,I associated it with my free app.I have finished it with the developer guide,and now its status is pending developer approval. However,during my test in the new application: //the featureAId is the same as the cre...

Problems after editing ~/.gdbinit

I put this in my .gdbinit after seeing it on CocoaDev: fb -[NSException raise] fb -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] fb -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] #define NSZombies # this will give you help messages. Set to NO to turn them off. set env Malloc...

iPhone: How to Get Basic Authentication to HTTPS Web Service Using NSURLCredential

I am trying to call an https web service (RESTful) using basic authentication. It works fine if I put the credentials in the url itself but I would rather add it to the request so that the password does not appear, for instance in an exception. I am using the following code: NSURLCredential *credential = [NSURLCredential credential...