Anyone know of an easy way to implement boundaries on an MKMapView. For example, I want to tell the map it can only stay in one area. I want to user to be able to scroll but have them stop when they get to a certain latitude/longitude. I tried using the willChangeRegion: delegate but that screwed me over. Thanks.
...
I'm interested in using rangeOfString with some wildcard characters as part of a search string.
For example, if I have several strings like "244px" and "356px" and I want to convert all such strings to "320px". Is there a way I can use wildcards to get the desired result?
...
Hi everyone.
I just built a game. It already has all the sounds. But for some reasons the sound effect of the click button is still small. How could I maximize the volume. I am not sure it is because of the quality of the sound files itself or because I din't increase the volume by code? could you guys help me out. Thanks in advance. H...
I'm looking for site similar to http://www.manoli.net/csharpformat/ that allows one to put in c# code snippet and it formats the html to post into your blog with a CSS file.
I need one that actually does this for Objective-C.
...
Hi everyone. I built a game using Cocos2D. And my game has no rotation. So how can I implement rotation for my game? please help me out.
Thanks in advance
...
I would like to enable the grayed out open file menu item within a non-document-based application. Document-based applications automatically give you a nice open file dialog with file extension filters based on plist entries etc... Surely, a simple elegant method exist to re-enable this functionality.
I have...
Added document types to...
Given a variable id x and a string NSString *s how can I get the instance attribute with name s for variable x?
ie. If we write NSString *s=@"a", then we want x.a
...
Hi everyone
I have some unsolved problem right now. My game is done, now I am at the last stage. In the main menu of the game there will be a button called goodies. Only appears when the user win the game once. I can do until that part . But the last part is to save that goodies. Meaning when the player exist the game after he able to ...
I know that class variables are declared in memory (as opposed to on the stack) when the class is initialized, and I know how class methods are basically used. But I have some questions about class methods that aren't answered in the basic documentation.
Are class method also declared in memory? What about any object declared within the...
Let's say I have the following situation:
When I select different rows in the NSTableView, it magically updates the NSArrayController (PersonController) selection. How is the NSTableView doing this? Does it do something like this:
- (void)bind:(NSString *)binding toObject:(id)observableController withKeyPath:(NSString *)keyPath optio...
Hi everyone!
I need to know if at an specific moment the MPMoviePlayerController is playing.
In iphone 3.0 it is not firing the MPMoviePlayerContentPreloadDidFinishNotification.
Does anyone knows any solution?
Thanks in advance!
...
Hi,
i'm new to iPhone programming and web service too.
I'm trying to get a file from a Rest web service written with c#, the service return a byte array, the file is 15Mb.
I've try to many ways to get the file but if i get the file inside an XML response, i need to parse with NSXMLParser that make my application crash because alloc a str...
Even with the simplest app (i.e no code, just labels) I get this warning in the system:console (not the Xcode one). I would guess its nothing to worry about, but just wanted to check to make sure?
SpringBoard[20558] Unable to create CFServerConnection.
Telephony state may be incorrect.
I am running iPhone-SDK_3, Xcode 3.2.1, Mac_SL_1...
Hi There,
Is there a way to query the size of a file that was requested via http in objective c on iphone.
I would like to find out file size prior to data being sent back so I can write a simple Download Progress indicator.
Your help is much appreciated.
Tony
...
I have to find the RGB of point where two diagonals of a rectangle cut each other in objective-c.
more explanation of my requirements:
lets take a rectangular image draw two diagonal from the corner like we make cross. I need the RGB value of the cut point.
Regards
Satya
...
I have a school assignment which consists of programming a scanner/lexical analyzer for a specified simple language. The scanner has to be programmed in C++.
This type of assignment has been used since the 90's and, although still a valid excersise, I consider it to be a little antiquated and a little boring.
I have gotten permission t...
Hi!
I've searching about using custom maps (for example: a campus university map) in the iPhone App, using coordinates to get my actual position, etc.
I've found one way to do that:
- Using de google code project: "Route-me" with the OpenStreetMap and map2sqlite.
The question is: ¿How I can put my own map layer (the campus university m...
It is possible to call one method from inside another. I've implemented this function
- (void)pickAndDecodeFromSource:(UIImagePickerControllerSourceType) sourceType
I want to call following method inside the above one.
- (void) viewDidAppear:(BOOL)animated
...
Hi out there,
im new to iPhone Dev and searching the web for resources about iPhone Development.
Currently i'm using this resources:
Apple iPhone Beta Forum
stackoverflow -> iphone Tags
iphonedevelopmentbits.com
icodeblog.com
thanks for every tip :)
...
I'm looking for a nice way to set my configuration constants. My idea was to create a singleton with my config properties. Say mySingletonConf with: URL, USERID, PASSWORD. During the initialization of the sharedInstance, a configuration file should be read to set the properties in mySingletonConf.
Should I use properties for this type...