iphone

tintColor of UISegmentedControl doesnt react

Come oon! I am almost looking a day at this! I want to set my tint color of my UISegmentedControl but it doesnt react... NSArray *segControlItems = [NSArray arrayWithObjects: @"L", @"H", @"A", nil]; UISegmentedControl *segControl = [[UISegmentedControl alloc] initWithItems:segControlItems]; segContr...

Caching an entire web page on the iPhone

I am considering caching an entire web page locally on the iphone, i.e. I want to provide a url and have the device download all the assets automatically. ASIHTTPRequest offers a cache, but as far as I understand it will only cache whatever url you feed it. I wonder if anyone has implemented a caching mechanism that will parse the downl...

Programatically highlight first row in tableview after first load

Im trying to highlight the first row in my table upon first loading the data and just cannot get it to work! I have tried lots of ways with no joy, the latest attempt being this: NSUInteger indexArr[] = {0,1}; NSIndexPath *n = [NSIndexPath indexPathWithIndexes:indexArr length:2]; [self.tableView scrollToRowAtIndexPath:n atScrollPosit...

Unable to submit app to iTunes Connect using Organizer

Hi there. I'm having issues submitting an app to iTunes Connect using Organizer. I build and archive my application successfully then go to Organizer. I successfully validate the application. I then click to submit the application to iTunes Connect. I get the dialog to choose signing certificate and the app that I am uploading. I sub...

iPhone, is there a maths function like fabs which will make numbers negative values?

I've used fabs before which makes passed values positive, but I need a function which will make number negative ?? ...

Benefits and drawbacks for CAAnimationGroup vs. CAKeyframeAnimation.

Dear fellow Stackers, I'm currently working on some core animation stuff for the iOS and really enjoying myself. This question is regarding the many different ways one can implement an animation. Say you would like to rotate a UIView a few times but with different timing functions for each animation cycle. To the best of my knowledge th...

Reflection in Objective-C (iPhone)

I want to populate [MyClass class] from a JSON string. I use json-framework to get the NSDictionary, and it's dead easy to instantiate and setValue: forKey:... on my data object. But for more complex data objects with classes as members of MyClass, ie: MyOtherClass *classNoTwo I tried with Class test = object_getClass(myClass.cl...

iPad not resigning responder

Hi, I have a table with 3 UITextFields added to the content views of cells (1 row per section). I have a 4th section that I insert so that I can scroll the particular field to be above the keyboard. The problem I have (on the iPad only) is that when one of the text fields has firstResponder, it does not relinquish it when user taps on...

Save UIImage into a specific PhotoAlbum

Is it possible to create a folder into a photo album where i can save my UIImage? I use - UIImageWriteToSavedPhotosAlbum but i can't chose the specific Photo Album ...

Signal strength measurements of Mobile Networks in iOS and/or Android?

Can you get signal strength measurements of Mobile Networks in iOS and/or Android? On developer.apple.com I have found CoreWLANWirelessManager sample code for OSX, that shows how to get measurements for WiFi networks. ...

how to parse xml

hi all, i am having an output xml which looks something like this, <?xml version="1.0"?> <root> <apple><apple1>A</apple1></apple> <ball><ball1>B</ball1></ball> <cat><cat1>C</cat1></cat> <dog><dog1>D</dog1></dog> <ele><ele1>E</ele1></ele> <root> i am using NSXmlParser, i m confused, is tgis a gud xml structure?>...

How do I handle other audio playing, in light of multitasking, in iOS?

In the Audio Session Cookbook there is a section on "Checking if Other Audio is Playing During App Launch". I'm using MonoTouch (but feel free to give an Objective-C answer, the API is the same), so the code from that document looks something like this: bool otherAudioPlaying = AudioSession.OtherAudioIsPlaying; if(otherAudioPlaying) ...

MKMapView - Always showing the last item (in my plist) in deatilview when tapping a pin

Hello, I have a mapview with a few pins on it. The pins are loading longitude and latitude from a plist. I've also added a detailview where you get more info about the pin that gets tapped. However my problem is that when I tap on a pin (discloseButton ofc) and get pushed to the detailview it's always the last items data that loads (fro...

Maximun file size for an application when submitting to the app store

Hi, Is there any limitation for a file size for an application when submitting to the app store. Regards, Dilshan ...

CameraOverlayView buttons

Hi Guys, I'm adding a cameraOverlay to my UIImagePickerController, it shows and all but it doesn't register touches. I init a button in the viewDidLoad and a one via IB. Is there some rule that prohibits me from adding a UIButton to a cameraOverlayView and register touches? Thanks ...

how to disable symbols after dot in double values

Hi all! How to disable symbols after dot in double values? 13 + 3.456 = 16.456 GOOD 13 + 1 = 14.00 BAD! I need 14 how can I do It? I am using NSMutableString. ...

Problem in hitting web service ..

Hi, I have an application in which I need to hit 2 webservices on a single button action. -(IBAction)hitAction { [webServiceObj hitWebService1]; [webServiceObj hitWebService2]; } The connection delegates and parser delegates have not been called for the 1st web service. For 2nd web service all the delegates for connection and pa...

User specific issue with iPhone SDK

Hey guys. I'm having this problem for 2 days now and I really don't know what to do anymore. When I run the iPhone 4 simulator and click a specific picker, the app crashes with the error: 'NSRangeException', reason: '* -[NSMutableArray objectAtIndex:]: index 4294967295 beyond bounds [0 .. 3]' However, it doesn't happen with...

MFMailComposeViewController usage and Apple aproval process

Hi, In my app, I have a logs mechanism, which offer the possibility to the customer to send the logs via mail.For this, I integrated in my app the Apple MFMailComposeViewController. In case that the customer use a device with low OS version (2.x) or an e-mail account isn't presented on the device, I pushed some UIAlertsView with some su...

SecTrustCreateWithCertificates crashes on iPad

Hi all, I am trying to use iOS security framework to securely communicate with my server. I have a certificate file from which I am able to get a public key reference. This is what I doing. NSString *certPath = [[NSBundle mainBundle] pathForResource:@"supportwarriors.com" ofType:@"cer"]; SecCertificateRef myCertificate = nil; NSDat...