iphone

Multiple Loop Variables in For Statement in Obj-C

Is there a way to have multiple loop variables in a for statement? Here would be a hypothetical representation of what I'm talking about: for (NSString *foo in bar; NSString *bob in example) {} If not what is a good way to accomplish this? Thanks, Kolin ...

iphone application: battery uses concern and minimizing battery use

What are the major factors that might cause an application to consume more battery power? As an iPhone app developer, what best practices can I apply to minimize battery use? ...

Sample project based on augumented reality in iPhone

Hi, everyone, If any buddy have any sample project based on augumented reality in iphone through GP's then plz send me the link of that project.. thnks ...

C/C++/Obj-C Real-time algorithm to ascertain Note (not Pitch) from Vocal Input

I want to detect not the pitch, but the pitch class of a sung note. So, whether it is C4 or C5 is not important: they must both be detected as C. Imagine the 12 semitones arranged on a clock face, with the needle pointing to the pitch class. That's what I'm after! ideally I would like to be able to tell whether the sung note is s...

Iphone multitouch handling

I'm writing an iPhone app, and I want to handle multitouches. I'm using cocos2d libs. So I've made a CCLayer subclass and set it to be a CCStandartTouchDelegate. For some reason I don't want to use UIGestureRecognizer and to build a correct logic I should know the answers for these questions: If I tap the screen with one finger, and th...

Tutorial about web service

Can anyone give me good tutorial about web service? i find below tutorial with example but doesn't work 1 2 3 for example if i want to show weather in my app should i get data from specific web site or i can get data from yahoo or other site about weather ...

Approaching porting a (Java) library (to Objective-C): Methodology?

I am an iOS developer and I found a great library that handles all kinds of astronomy related calculations for me. The problem is that it's written in Java. Although I have enough experience with languages close to Java, I can't run Java on iOS. I'd like to port it, but being that I've never ported anything before. Like I said, I don't ...

codesign "The operation was cancelled by the user"

For some reason, whenever I try to codesign in xcode, I am getting this error (path to app): The operation was cancelled by the user. Command /usr/bin/codesign failed with exit code 1 ...

removeFromSuperview not removing button from the view....

removeFromSuperview not working Properly? I added one button over another button. When i try to remove the latter button from the view using removeFromSuperview function call , it does not worked. ...

Trigger on scheduled events

Hello all! I got an schedule in an plist-file, reading the events (read: times) is not the problem. The problem is comparing the events with the current time. I am somewhat new to iPhone-development so it might be an easy answer for this but here it goes: scheduleTime isEqualToString currentTime - well that does the trick almost... What ...

Image VIew problem

How can i remove an ImageView added on a dynamically created UIView, so that i can add another ImageView on my UIView. ...

iPhone OpenGL: Moving around a 3D enviroment

Hello all, this is probably a long shot I am looking for an example / tutorial of how to render a floor (or room) and move around it. There seems to be the perfect example here: http://www.cocoachina.com/wiki/index.php?title=OpenGL_ES_13_-_Moving_in_3D However the download (which is required) is missing. Does anyone have any code sam...

Problems with overlaying different UIImages

Hi folks, accordingly to some UIColor values from within a scroll views context I want to change the pixels rgb values for several UIImages I want to overlay afterwards. At least I have 4 images I'd like to overlay, a background image which is static and 3 layer images whose pixels information I'd like to change before overlaying all tog...

Using TTImageView with AQGridView

I created a custom AQGridViewCell. By using UIImageView everything works. The image appears and is clickable, but when I change the UIImageView to TTImageView I can't click on the image. The same example as here below by just changing the imageview to UIImageView and the the setter message to an image, everything works as expected. H...

What range sound frequency can be measured from iphone's microphone

hi all... i want to know the range of frequency that the iphone's microphone can listen and can we play the least frequency sound recorded by iphone's microphone.. how to record a sound(any sound or voice) through iphone's microphone and how to save that..? Thanks ...

test local websites with mamp on iphone?

hey guys, i wonder if it's possible to view my local test-environment set up with mamp on my iphone? e.g. i'm using mamp-pro and i set up a domain http://mydomain.com which shows /htdocs/mydomain.com in my browser. is there an easy way to view that page on my iphone as well. my iphone is in the same network - just my home network wher...

Objective-C variable with multiple permissions

I have a data model which is similar to this: (in another project) ________________________________ _______________________ | | | | | Graph | | DetailedGraph | | GraphListener lstnr ...

Issue posting variable with iPhone SDK

Hey everyone, I am encountering an issue while posting a variable with Xcode: While running this code the app crashes while posting the variable to a webservice: NSArray *array = [stringFromFile componentsSeparatedByString: @","]; NSString *time = [array objectAtIndex:1]; UTCorLocal = time; NSLog(@"%@", UTCorLocal); UTCorLocal varia...

Best Way to Parse HTML to XML

Essentially, I currently have an iPhone app that can query and parse an XML file on my server. Right now, I currently have to manually update and upload my XML file every morning so my users can have the updated information. I would like to automate this process, which would essentially entail parsing various websites (NYTimes, iAmBored....

problems with iphone code to check server file date

I want to check the dates on files -- zip, jpg, or whatever -- on my server and, if they are newer than the copies on my iPhone, to download them. I wrote the following method based on a post here that's about a year old. It has two problems: + (NSString *) f_GetServerFileDate:(NSString *)MyURL { NSURL *oURL = [NSURL URLWithString:...