Hi all,
I have a little method that saves an image to the photo library. That works just fine for the iPhone simulator. But when I switch the simulator to iPhone 4 the image saving won't work anymore. I always get the "error"-alert:
//save actual design in photo library
- (void)savePicture{
UIImage *myImage = [self combineImage...
In iOS4's photo album place,
the photo-pins join and split each others when the map is zoomed out and in.
It's awesome experience! and I want to use same thing on my apps.
I guess, it should not be one of MapKit.
does anybody know that how can i do this?
...
I'm using setNeedsDisplayInRect: as much as possible in my UIView subclass, but I don't know what to do in drawRect:. What is the best way to detect which parts of the UIView have to be drawn? Right now I've divided my UIView into several CGRect's. For each CGRect I'm calling CGRectContainsRect() to check whether that CGRect needs to be ...
I am checking network reachability in applicationDidFinishLaunching:
[self performSelectorInBackground:@selector(performReachabilityCheck) withObject:nil];
Background thread
-(void)performReachabilityCheck{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
internetReach = [[Reachability reachabilityForInternetC...
I'm new to iphone development. I currently have an app on windows mobile that uses a local database on the device (sqlce) and the app is able to synchronize the data between the device and a remote database through a web service using microsoft sync framework.
Is this requirement feasible on an iphone app? Id like to build a version of...
I'm building a custom slot machine with a column that exists of a uitableview.
When the user pulls a lever the tableview should scroll to a certain position with an index.
I used the method:
- scrollToRowAtIndexPath:atScrollPosition:animated:
But this method will make the table scroll with a constant duration. So you will not really ...
Is there an API to get a user's voicemail number on iPhone?
...
Hi,
In a class which inherits from TTViewController, I create an UITabBarController :
- (void)loadView
{
[super loadView];
YoutubeFeedViewController *y = [[YoutubeFeedViewController alloc] init];
SourcesController *s = [[SourcesController alloc] init];
tabBarController = [[UITabBarController alloc] init];
tabBarCont...
Hi there...
Basically I want to "cut the corners" of the first cell imageview and the last cell imageview to match the curved corners on the grouped tableview section.
I was given the advice to do this by setting the view's masksToBounds property to true?
Anyone know how to access this view? Doing cell.superview doesn't work. cell.con...
I currently have an application which will drop pins onto various points of interest on a map, all done programmatically on the iPhone.
What I am aiming to get done now is to allow a user to navigate to that location and get turn by turn directions by calling up the built in navigation tools on the iPhone.
Is there anyway that I can do...
I tried to install my application on the devices by using Build and Run from xCode, the application works fine, but when I quit, in the springboard there's no icon for the application, I found the following log on the device's console (which I takes from the Organizer application)
Wed Oct 20 17:05:48 iPod-01 com.apple.launchd[1] (UIKitA...
In Titanium how do I 'dock' a footer menu to the bottom of the screen on Android and iPhone? I want to display 3 icons on the bottom of the screen.
...
I am writing an application for iPhone/iPad and I need to implement a function to allow users to upload pdf. i wonder if there are limits on the amount of available memory?
...
Hi
I'm developing tab based application, i'm having 5 tabs,following are the snap of controllers added tab bar controller,I need to support 3.4 view controller to both orientation (Landscape/Portrait -this support by default), i did override the below method,but that particular view is not change the orienation,if any one can give a sam...
Dear Friends,
I am trying to create a small game for the iPhone with images and I want to them to zoom in when the player is pinching on the screen. I have seen the tutorials with one UIImageView. However, now that I am using multiple UIImageViews, things do not work OK.
I put them in an UIView and I am trying to zoom the UIView. Howe...
Can you describe the naming convention difference between a method that returns an object it has allocated for the caller (and that the caller should release), and a method that returns an autorelease object?
...
Hi all,
I have a modal view controller which is crashing when it dismisses itself. The error is EXC_BAD_ACCESS (yipee). I am tryin got use NSZombie to work out the problem. I get am getting the following :
2010-10-20 17:15:58.936 [24058:207] AddRunningClient starting device on non-zero client count
2010-10-20 17:16:06.846 [24058:207] *...
I have this code in one of my projects (part of a loop):
newPath = [tileMap updatePathFromNode:point1 toNode:point2];
int x,y;
x = [[newPath objectAtIndex:0] nodeX];
y = [[newPath objectAtIndex:0] nodeY];
currFiend.motionTarget = ccp(x*20,y*20);
I am now looking for areas around my entire project to optimize the code. What i'm curiou...
Hi All,
I am loading content into a UIWebView via a string :
- (void)viewDidLoad {
[super viewDidLoad];
NSString *html = [[[NSString alloc] initWithFormat:(@"<html><head><style type=\"text/css\">body { text-overflow: ellipsis; font-size: 14px;width: 300px;font-family: Helvetica, Verdana, Arial;}table {text-overflow: hidden...
I have a SQLite database containing image data as a BLOB, and I am using the follow code to set the properties of an object, but I am getting major memory issues with the data, particularly on the data and w.wineImage objects, even though it looks like I am releasing everything correctly...
if(sqlite3_prepare_v2(database, sql, -1, &sele...