iphone

.xcodeproj does not get committed with XCode's SCM Tool

I am using the SCM Tools embedded in XCode to manage my app's versioning. I have created an iPhone app and I have added/committed it to the Subversion server but the .xcodeproj file won't upload (all the class files, resources etc are there)! I don't even get the option to "Add to Repository". Sometimes it gets an "A" (add) next to it u...

changing font for a text to a font not in family fonts

can any one suggest me how to change the font of the text view content to a font that is not in the family fonts.. ...

iPhone: get application absolute path

Hello! Is there any way to programmatically get absolute path of executable. During execution of this executable, i mean :) Something as reading /proc/pid/* in linux for current PID Thank you! ...

How do I escape a Unicode character in my source code?

I feel incredibly stupid for asking this, but the documentation and Google are giving me no love at all. I have a Unicode character I want to insert into a string literal in the source code of my iPhone app. I know its hex value. What is the proper escape sequence to use? And for that matter, what obvious source of information am I o...

what does this error means in xcode?

Building target “testjson” of project “testjson” with configuration “Debug” — (2 errors) Checking Dependencies error: There is no SDK with specified name or path '/Users/xcdfs/Library/SDKs/JSON/iphonesimulator.sdk' error: There is no SDK with specified name or path '/Users/xcdfs/Library/SDKs/JSON/iphonesimulator.sdk' error: Ther...

How can I create dynamically updated views in a tab bar view, based on settings selection?

Hi all, Noob question.... I've created a Tab Bar application. It has four tabs and works fine. Each view is created with a XIB and is effectively static. Each view takes user input and responds on screen. What I need to be able to do is change the input options the user have - in effect remove some UITextFields dependant upon which o...

How to build a compass with the iPhone?

Hello, After some searching on Google, I ask myself: Is it possible to build a compass (simple showing the heading/direction) with the iPhone 3G's GPS sensor? I have the suspicion, that this is only possible, if the device is moving. Any ideas are appreciated. ...

Shark for profiling iphone app

Hi All I am using Shark to profile my application on iphone. As per instruction in Shark user guide from http://developer.apple.com/iphone/library/documentation/DeveloperTools/Conceptual/SharkUserGuide/SelectingExecutiontoSampleorTrace/SelectingExecutiontoSampleorTrace.html#//apple_ref/doc/uid/TP40005233-CH13-SW19 I am able to generate...

customizing the keyboard height and width in iphone using objective-c

I want my customized keyboard in iphone with height and width that i want. ...

How can I invoke a method automatically 20 times per second?

From JavaScript I am used to create an interval and specify the delay for re-calling the function, until I stop the interval. Is there something similar available on the iPhone? Any good links are highly appreciated. This goes to community wiki. ...

Hiccups in OpenGL ES. What is the correct implementation?

I'm using OpenGL ES to make a game on the iPhone. Unfortunately, I see small (and irregular) hiccups. I use a timer with a sleep, calling the draw function every 60th of a second, in order to garantee a solid frame rate. I've tried to change the moment in time my timer awakens from its sleep, giving the draw function more time to exec...

iPhone 3G: How to show locations around a fixed point?

Hi, I have my current location fixed via CoreLocation. Now I want to get those locations (from an existing database), which are in the near (about 100 feet) of it. How do I start? Update: Here is a implementation of the Haversine formula: http://www.jaimerios.com/?p=39 (very useful) ...

How can I solve this Problem with bidirectional dependencies in Objective-C classes?

Okay, this might be a very silly beginner question, but: I've got an ClassA, which will create an child object from ClassB and assign that to an instance variable. In detail: ClassA will alloc and init ClassB in the designated initializer, and assign that to the childObject instance variable. It's header looks like this: #import <Found...

Why does UIWebView shrink images?

I'm using a UIWebView to display images in base64 (http://www.abluestar.com/utilities/encode_base64/index.php). The UIWebView is set to "Scales Page To Fit" and Mode is "Left". The image might be 400px wide but once rendered in the UiWebView, it takes up not even half of the screen. I need to do something like style="width:800px;..." ...

How do I create a reusable Loading Screen?

How do I create a loading screen that can be reused at any given time. I'm aware of the Default.png but I need the flexibility to plug in a loading screen at any point during the application life cycle. This is what I have thus far. //inside a method that gets called by a UIButton LoadingViewController* loadController = [[LoadingViewC...

UIToolBar - How to Handle Button-Overflow?

I have a view with a toolbar - each button on the toolbar represents a new message the user is composing. It took me several work days to figure out how to handle the view switching, etc.. but now that I have that all figured out, I have run into a bit of a UI-snafu. When I have over 11 buttons (I know, a user should really SEND the fir...

How do you get the users phone number with PhoneGap (on the iPhone)?

So there's a plist boolean in PhoneGap referencing the user's phone number? Can this be acquired? This StckOverflow question suggests not: http://stackoverflow.com/questions/193182/programmatically-get-own-phone-number-in-iphone-os I'd like to auto-populate my iBlipper.com app for the message "my number is..." ...

How to change text on a back button

Hi, By default the back button uses as a text on it a title of a viewcontroller. Can I change text on the back button without changing a title of a view controller? I need this because I have a view controller which title is too long to display and in this case I would like to display just "Back" as a caption for back button. I tried t...

How can I make my Nib load correctly my customized UIScrollView subclass?

I had an nice UIScrollView inside my nib, which worked nicely. Then I had some very special needs and subclassed UIScrollView. In my Nib, I changed the class in the identity inspector to my subclass. But for some reason, my -initWithFrame: method gets never called when the nib loader builds up all those objects from the nib. Actually I ...

In which cases is it a good idea to relinquish using self when accessing instance variables?

This may be a really silly beginner question, BUT: If you have some nice instance variables in your class, such as an UIScrollview *scrollView2 for example, then why should you bypass the getter and setter by relinquishing a [self.scrollView2 addSubview:imageView]; , and rather doing a [scrollView2 addSubview:imageView]; ? I mea...