Hello! I’ve got an UIActionSheet with a single button that I show in a popover. In landscape mode there is a plenty of space around the popover, so that it displays with an arrow in the middle and everything is fine:
In portrait the popover has to be displayed with an arrow on the right side:
Now the button looks a little bit too l...
What is the cleanest way to set up a structure where you have an initial standard, full screen UIView, which transitions to a Tab Bar view?
...
I'd like to test a website with iOS. Is it possible to use the iOS simulator to run the iOS browser?
...
@interface Week : NSManagedObject {
}
@property (nonatomic, retain) NSNumber *weekID;
@property (nonatomic, retain) NSString *top;
@property (nonatomic, retain) NSString *summary1;
@property (nonatomic, retain) NSMutableArray *book;
@end
I'm reading XML file from server and putting vales in above entity.Since Books to be read for th...
Hello, I'm using AVAudioRecorder to record audio from the iphone's mic but I want to discard the silence periods: start recording when detecting sound, and stop recording when next silence.
Can't figure out how to do that
Any advice?
Thanx!
...
From the Game Kit Programming Guide...
Multiplayer allows players interested
in playing an online multiplayer game
to discover each other and be
connected into a match. Depending on
your needs, your application can have
either use Game Kit to connect all the
participants together, or have Game
Kit deliver a list of play...
Hello!
I've downloaded the latest SDK from developer.apple.com and can only pick 3.2 or 4.1 from Project > Properties > Base SDK.
My iPhone is 4.1
My client have iPhone 3.x
You feel the problem...
How can I debug for iOS 3.x in xcode with the 4.1 SDK installed?
...
Hi,
I have a Web View Which loaded as a modal view. I am having memory leaks after loading a webpage using the following code.
[myView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url]
cachePolicy:NSURLRequestReloadIgnoringLocalCacheData
timeoutInter...
I want to overlay a HUD-style transparent graphic over the entire screen in a UITabBarController setup. The button to do this is in the first tab's screen (FirstViewController), and the overlay should also cover the tabs... is this possible?
...
When using the Date/Time picker on the iPhone/iPad, the year (yyyy) is stripped from the Date formatting in order to make room for the time.
How does it accomplish this based on the default unicode formats stored by the region format?
The formats do not necessarily match any of the following:
NSDateFormatterLongStyle
NSDateFormatterSho...
In Apples documentation for Game Center it says to use this code to detect if Game Center is available:
+ (BOOL) isGameCenterAvailable {
Class gcClass = (NSClassFromString(@"GKLocalPlayer"));
NSString *reqSysVer = @"4.1";
NSString *currSysVer = [[UIDevice currentDevice] systemVersion];
BOOL osVersionSupported = ([currSysVer com...
Hi,
Is there a way in interface builder to maybe see a tree of my elements so that I could select them that way. It's very hard to select things inside the actual view itself, especially when I have alot of elements and nested views, etc.
Thanks
...
Hey there,
I'm working on an app for 4.0 using the background methods. I'm updating the user defaults with a number that is incremented each time the app is launched. Looks like in 4.0 didFinishLaunchingWithOptions doesn't fire each time the app is launched, only the first time it's launched if it's not already in the background. So ...
I'm working on an iOS app, and I need to prevent a UIButton from being usable until the page has finished loading (it uses resources that might not be on the page until it has loaded completely.)
Right now, I've disabled the button in Interface Builder and am trying to use setEnabled in the webViewDidFinishLoad function. Here's what it ...
I have a problem where I have sound in Menu > Level one.
However when I exit Level one and go back to menu the sound won't stop!
What code do I need to terminate the sound?
This is the code I'm using:
- (IBAction) playsound {
NSString *path = [[NSBundle mainBundle] pathForResource:@"imsound" ofType:@"wav"];
AVAudioPlayer* myAudio=...
Hi,
I am using the following code to allow users to record video using their iPhone camera, and then upload it directly to my server. I would like to put a limit on the length of the video they can record (5 seconds in this example) and it looks like using videoMaximumDuration would be the obvious way of doing that, but it has no effect...
Edit: 10-9-10
I think the app is crashing when the JSON library tries to parse the [NSString stringWithFormat:@"%d weeks",[components week]] How would i format it so that JSON can parse it?
here's the JSON code line
NSString *attachmentStr = [jsonWriter stringWithObject:attachment];
NSMutableDictionary* params = [NSMutableDict...
According to the iOS documentation, the responder chain is used to pass touch events "up the chain". It's also used for actions generated by controls. Fine.
What I really would like to do is send a custom event "up the chain". The first responder to pick up on the event will handle it. This seems like a pretty common pattern, but I can'...
So I want to incorporate GameCenter achievements in my game, but I have to supply images for each achievement for display in the GameCenter app. Apple isn't really clear about the required size. I've read online that they demand 512px images, but then they scale them down to something like 32px which makes it all blurry and/or pixelated....
I'm still fairly new to Obj-C and the idea of blocks. I read this post about displaying images from url retrieved from ALAssets: http://stackoverflow.com/questions/3837115/display-image-from-url-retrieved-from-alasset-in-iphone
Besides being able to view picture files in a UITableView using the ALAsset framework, I want to be able to pl...