How do you determine (programatically) if an iPhone/iPod is:
Jail broken
Running a cracked copy of your software
Pinch Media can detect if a phone is jail broken or the software running is cracked, does anyone know how they do this? Are there any libraries?
...
Hi there. My application is quite simple, but I have some problems when it starts. I setted in the Info.plist to be landscaped, but it seems to ignore the order. In fact, when the app is loading the Simulator is landscaped, but then it returns in portrait mode.
This is the hierarchy of the views and controllers:
MainViewController (ex...
I've got a fairly complex view, for me anyway, that has a few "trays" with custom interface items on them. They slide in and out of my root view. I'd like to nest (addSubview) the items inside the view. Each needs some setup before being displayed...and none can be configured in IB (they're subclasses of UIView).
I'm wondering if it ma...
The iphone supports a means of defining your application's settings such that it will automatically create a UI in the Settings app. I want to also allow the user to edit the application settings within the application but it'd be nice to reuse the same UI that is automatically created.
See: Application Settings
Is there a way to have ...
I need a kind of "screenshot" from everything that's displayed in an UIView. Maybe there's a way to just access the image data that the renderer generated to display the contents on screen?
...
Hi all,
In one of my application i need to check that spelling of word is correct or not.
so I what's to know, Does the iphone have a built in dictionary that other apps can access?
if yes, then how to do that.
please help me.
...
Hello,
how do I use custom placemarks instead of the standard pins with MapKit
on the iPhone?
Regards
...
Hi
I've been reading three books (iPhone Game Development, iPhone cookbook and beginning iPhone development), but so far I've not found the answer to my question, so I was hoping someone here could help me.
As an example, lets say that I want to have a joystick onscreen, and three buttons.
I need all of these permanently visible on th...
I am making a simple app in which filled circles bounce around the screen. Right now, the speed of the circles is fixed, but I want them to speed up or slow down randomly.
I originally tried to use NSTimer, but I discovered that the time interval could not be made irregular. According to Apple's documentation, with the NSAnimation c...
I have a UITabBarController which is switching between tabs just fine. The only issue I have is that sometimes it takes up to 3 seconds to respond (call didSelectViewController).
This only occurs when I am switching between pages with quite a few elements, UIViews and UILabels and such. It is instant to respond when it doesn't have any...
Apple says:
removeFromSuperview Unlinks the
receiver from its superview and its
window, and removes it from the
responder chain.
(void)removeFromSuperview
Never invoke this method while
displaying.
So, when I want to get rid of a view, I was used to just kick it off from it's superview. Why should I never in...
I'm running an app on the iPhone that performs the following action:
+ (void)performWrite:(NSData *)data {
[data retain];
[data writeToFile:@"WriteTest.tst" atomically:YES];
[[NSFileManager defaultManager] removeItemAtPath:@"WriteTest.tst" error:NULL];
[data release];
}
When running in Instruments, however, I see a lea...
I have an UIImage and want to shift it's saturation about +10%. Are there standard methods or functions that can be used for this?
...
Edited for brevity:
How does a subview access properties in its superview and its superview's view controller? Easy enough to go down the chain. How do we go back up?
Original (verbose) post:
The immediate problem I'm trying to solve is simplifying the "birth" of a somewhat complex view. The large picture has to do with Nibs and how...
I create a context from an UIImage, and then I draw into it with
CGContextDrawImage(bitmapContext, CGRectMake(0, 0, originalImage.size.width, originalImage.size.height), oImageRef);
the image appears upside-down due to the flipped coordinate system in quartz. How can I fix that?
...
Is there a safe way to change the priority of an NSOperation that is already enqueued in an NSOperationQueue? If the operation hasn't started yet there is no problem, but if it is already executing I get an NSInvalidArgumentException.
...
I'm trying to get the following code work:
UIMenuController * menu = [UIMenuController sharedMenuController];
[menu setTargetRect: CGRectMake(100, 100, 100, 100) inView: self.view];
[menu setMenuVisible: YES animated: YES];
The menu instance is ready but it doesn't show - the width is always zero.
Or is there some sample code on this...
I didn't notice much performance lost by doing this. So I wonder if it doesn't hurt when I re-use the same UIImage multiple times at the same time inside multiple UIImageViews?
...
Hello,
I would like to have a UITableViewCell stay lit (blue) after i call cell.selected = yes. is this possible? do i have to go another way about it (as in not cell.selected)
thanks!
...
Hello,
I use ABUnknownPersonViewController to display a contact view.
I try to set an image with:
NSData *dataRef = UIImagePNGRepresentation([UIImage imageNamed:@"contact3.png"]);
ABPersonSetImageData(newPersonViewController.displayedPerson, (CFDataRef)dataRef, nil);
It doesn't work and I don't know why. Any ideas?
...