NSNumberFormatter has a method
- (void)setGroupingSize:(NSUInteger)numDigits
when I would provide a 0 here, is that disabling any grouping for sure? I really don't want any grouping to happen, no matter if the user has a locale of Takawaka or US. I need a safe way to get rid of any grouping here. Anyone?
...
Hey guys,
I'm having a problem with doing a sendSynchronousRequest failing. It only fails after I try to get the current geolocation and the user hits "Don't Allow". And it only happens under 3.1.2. (As far as I can tell. It works fine in 3.0.1.)
Here's what I do:
I set up a very basic test app, that has almost nothing in it. In appli...
Hey All,
I was wondering what I should use to display an image on screen every time the user presses a button. I am using Objective-C/CocoaTouch on the iPod Touch. I would like to pull these images from an array I have set up and place them on the screen when the button is triggered. I feel dumb asking but any one that can point me in ...
So I'm trying to do collision detections between sprites in cocos 2d. Although I think I may be asking too much as it crashes and the compiler doesn't give me an error, the iPhone simulator just freezes and then gives up. There's a lot of looping involved so I'm guessing it's just too much... but I can't be certain.
My intention was to ...
I have 3 tables called radio, song, and artist controlled by favorite.
Now I want to display different text for each table when there is nothing inside the table. But I want the text to be removed when there is something inside the table. I could display the text, by adding label into it.
if ([mainDataCenter.favoriteArtistArray count] =...
I changed a .png that I was using for an UIIMageView that I added using InterfaceBuilder. Now, when I run the app in the simulator, the image does not show. I have tried removing the reference and re-adding and even creating a new image altogether and nothing seems to work.
PLEASE HELP!!!!!!!
...
Can someone provide me with a way of uploading files, such as images or text files,from an iphone app to a web server. I have found many examples but all are in php. I'm using C# with ASP.NET and need to do a simple upload. Thanks in advance.
I actually needed a solution for the iphone app. How to upload the file from the iphone to an ...
Similar to the Simon games of old, I want to show the user a button sequence & then have them repeat it back. The place I'm stuck is showing the first button highlighted for, say, 500ms, waiting 100ms, showing the second highlighted for 500ms, waiting another 100ms, showing the 3rd & so on.
From other Stackoverflower'ers I've gotten to...
Hi all,
In my application I need to implement touchBegan for the custom View that has been created . I haved added the following method to my custom view class.
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
}
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
}
- (void)touchesEnded:(NSSet *)to...
I've got a collection of roughly 10 overlapping UIImageViews. Each one is rectangular but each is rotated and scaled separately. Are there any Core Graphics tricks for drawing a path around the perimeter of ALL the images?
CGRectUnion may give me a rectangle encompassing all the views (though I vaguely remember the frame is undefined o...
I have a view hierarchy that is layed out as follows:
parentView
scrollView
contentViewA
containerView
contentViewB
contentViewC
I want contentViewB to respond to touches. Unfortunately scrollView makes this almost impossible because it tries to ingest the touches itself making touch response of content...
Hey there!
I have made an class that conforms to the protocol. So I have implemented an init method like this:
- (id)initWithCoder:(NSCoder*)decoder {
if ((self = [super init])) {
self.someIvarObject = [decoder decodeObjectForKey:kObjectKey];
}
return self;
}
Of course I also have an -(void)encodeWithCoder:(NSCoder*)encoder met...
I have been trying to figure this out but have yet to come to a solid conclusion. I would like to create a UIButton and have it look like the buttons on the home screen, with the picture and text below it. I know Apple took away the UIGlassButton so the 3d'ish look can't be programmed but I am mainly wondering about the position of the e...
Example: I have an NSInteger and I wrap that into an NSNumber object. Now I want to have an NSDecimal with the value of that NSInteger.
So could I ask:
NSDecimal myDecimalFromMyInteger = [myNSNumberObject decimalValue];
Or is this problematic on some way? Or must I always ask for the exact same value as I used to create the NSNumber ...
Hi everyone i want build a poem application so i want use to NavigationControlle for show each poem ! i mean i have a TableView and on there + 50 poems !
each cell have different poem ! so what can i do to import each text or HTML Files(My Pomes) to special view , that work with navigation controller ?
is it good idea to use NSArray to ...
I have an app with a splash screen. For the splashscreen I've decided to add a m4v movie. I'm using the MPMoviePlayerController to show the movie. Everything is working as expected except for one thing:
I'm trying to make the MPMoviePlayerController loop by subscribing to it's MPMoviePlayerPlaybackDidFinishNotification notification and ...
I'm building an iPhone application and like most I am trying to implement a UIScrollView with a UIPageControl, however I am coming across a very quirky behavior, which I assume may be a bug. Hopefully one of you has seen this before because it is driving me nuts.
Basically, the page control works fine, everything is hooked up and works ...
Hi folks, I've got a question on the conventional way to structure something similar to the following:
I have a screen which has a single line of data followed by a list of other data - and so I thought using a grouped UITableView with a single row'd section for the top and the rest in the section below would work well.
As I'm using C...
Can anyone tell me how to program USB devices with Objective-C as an iPhone application?
I want to access USB device contents through iPhone
...
hai all,
I'm trying to implement a Streaming music Player using iphone sdk, based on the sample code by Matt Gallagher ( http://cocoawithlove.com/2008/09/streaming-and-playing-live-mp3-stream.html)
now i would like to know how can i get the number of bytes available in the CFReadStreamRef .
After a long search i got the code to find t...