Calculate Dip and Strike.
Hello All, How do i calculate Dip and Strike from iphone. They are used to measure rocks. i have to use compass api how do i get the angle from it. anyone has idea please give me some idea. Thank you. ...
Hello All, How do i calculate Dip and Strike from iphone. They are used to measure rocks. i have to use compass api how do i get the angle from it. anyone has idea please give me some idea. Thank you. ...
I found a c function which I would like to use in my app. Unfortunately, my c knowledge is not great. The first section of code shows the original c code and the second my "translation" to objective c. I have 3 questions I would appreciate help with please: Is my translation of the variables from their c counterparts to their objective...
Hi i am new to iphone. i want to eliminate chars from %0A onwards in below url string and %20 also.please any one give some solns. case:1 http://www.sampleurl.com-feb 1.2161280%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20 case:2 %0A%20%20%20%20%20%20http://www.sampleurl.com-feb.html%0A%20%20%20%20%20%20%0A%20%20%20%20%0A%20%2...
Hello guys! I have a problem with the twitter login. I am doing the login with oauth. First login is good, and when I logout and make a relogin the twitter doesn't ask for my password and username, it gives the pin only. Is there a way to send logout to twitter? Because my logout is clears the NSUserDefaults only... If I use the author...
Hi, following situation: in a TTTableViewController i added some Cells with URLs. they are opening a class with @"tt://photos" for example. this works quite fine. the first thing is, i saw some urls in TT Examples like @"tt/photos/1". is it possible to fetch this "1" in my photos class and say, for example okay, please open picture on...
I tend to use the .mm extension by default when creating new classes so that I can use ObjC++ later on if I require it. Is there any disadvantage to doing this? When would you prefer .m? Does .m compile to a faster executable (since C is generally faster than C++)? ...
Hi, I have created a custom view with Interface Builder and defined its IBOutlet variable within my ViewController. Now I would like to instantiate multiple variables of this view, without duplicating the view in Interface Builder and creating its respective IBOutlets. When I connect the view in Interface Builder to multiple reference...
I have some php files in a server which generate xml code in them. I need to get this xml code from an Iphone app by sending some GET parameters to the files. For instance http://myserver.com/myFile.php?param=xxxx and then get the xml generated in this file. I have been researching a lot but couldn´t get any results yet. Thanks a lot...
I have a class that inherit from UITableViewController, the only orientation allowed is UIInterfaceOreintationPortrait. In this class I'm using the delegate method didSelectRowAtIndexPath: to push another view in which landscape orientation is allowed. The problem is that when I came back from this view in landscape orientation, the Tabl...
Is there some blindingly obvious reason why this is producing a nil string instead of the actual text content of the file? NSString *fromFile = [NSString stringWithContentsOfFile: @"file://localhost/Users/username/Desktop/test.txt"]; NSLog(@"%@", fromFile); PRINTS: "(null)" The file is a plain ASCII text file ...
I'm doing an iPhone ap which contains a viewController class (PhotoListViewController). This viewController's view has a subview which contains a button attached as a subview. I'm trying to use the addTarget:action:forControlEvent method to call an instance method of the PhotoListViewController class in order to perform an action when t...
NSMutableArray * oneText = [[NSMutableArray alloc] init]; [oneText addObject:[arraySystem objectAtIndex:[countImage intValue]]]; [oneText addObject:@".png"]; NSString *oneTextText=[oneText objectAtIndex:0]; [oneTextText stringByAppendingString:[oneText objectAtIndex:1]]; NSLog(oneTextText); Why can't the above code print 'Lenght.png'? ...
Hello everyone, I'd like to code a high score board for my application, can anyone advise the best way to do it? #import "MathsTestViewController.h" @implementation MathsTestViewController @synthesize theQuestion; @synthesize theScore; @synthesize theLives; @synthesize answerOne; @synthesize answerTwo; @synthesize answerThree; @s...
I have a pile of data in the format listed below that I need to convert from 2-digit hex to their respective integer values. Is there anything that I can specify to NSScanner that will take 2 characters at a time for conversion. Or will I need to either break the string up manually (e.g. "D8" "BE" ...) or reformat it to include a delimit...
Seems like there wouldn't be, but it would help us out if there was. I wish to pull the source down to a windows server and compile it and have it be the same as if I had pulled the source code down to a mac machine and used xcode on it. Any Ideas? Reasons: Release Engineering and IT are much more familiar and comfortable on windows, so...
I want to use a MKMapView to display the user current location using the default breathing blue pin and I want to record the user movement at the same time. Is there any way that I could use the GPS manager (not sure if this is a CLLocationManager) the MKMapView uses when we enabled it to show user location? I know that I can create my...
Hi, Could somebody show me how to get the x and y position of a UIButton in cocoa? The button moves on the screen when clicked and I want to use it's current position to position another UIBUtton relative to it. I've tried using CGRect rect=[myButton imageRectForContentRect]; The compiler tells me that myButton may not respond to i...
Hi, My app requires an interface that has many buttons, text fields and matrixes. And they need to change from time to time. Right now I do this by having all elements in IB already and hiding/showing/moving them when needed. What would others recommend? Should I do that? Should I use an NSTabView? NSView? Should create the elements pro...
How does the XCode Instrument Leak tool figure out if an object is a leak or just something not released yet? I'm pretty new to Objective C, the leak tool detects a leak in the code I work with. But the code looks sound to me. So just wondering how much can I trust this tool? ...
I have this code NSArray *wordListArray = [[NSArray alloc] initWithArray: [[NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@”sowpods” ofType:@”txt”] encoding:NSMacOSRomanStringEncoding error:NULL] componentsSeparatedByString:@”\n”]]; My question is how can I extract this text and update a label in a Scrollvi...