I have a UIButton which I've added in IB, however the view behind this button changes color and I need to switch the button's type between InfoDark and InfoLight. Bizarrely though, buttonType property is read only. So how can i switch between light and dark info buttons?
...
I am looking to setup a multi-layer parallax scrolling background for a game application and was wondering how I might go about this. The application will scroll left to right (in landscape mode) and I am looking to setup three layers, foreground trees, background hills and distant clouds all moving in parallax. Each layer going back wil...
Hi,
Kindly get me the limits of following things in sqlite of iphone
No of rows that can be created
Maximum size of the database per app.
...
Tearing my hair out trying to get the most simple of tutorials to run, from the book 'Head First iPhone Development'
Have a UIPickerView which is bound to an array of objects. That is all. It doesn't do anything, all I want it to do (for now) is to display whats in the array. I've followed the steps in the book word for word, and restar...
Ho all! I'm trying to' make a login with the iPhone into a https server.. I tried different solution, also asihttprequest and the solution works fine with http normal website, but with https the return data is the same of the login page...
I news to' make something different for https?
Thanks in advance
this is the code that I tried:
on...
Im trying to figure out how to put an annotation on a map based on where the user touches.
I have tried subclassing the MKMapView and looked for the touchesBegan to fire but as it turns out, MKMapView does not use the standard touches methods.
I also have tried subclassing a UIView, adding an MKMapView as a child and then listening fo...
I have a UIScrollView with an Image subView. I subclass touchesEnded to add a dialog box as a subView as follows:
- (void) pushInfoBox {
// the following line is referred to "myVC Caller" below
myViewController *myVC = [[myViewController alloc]
initWithNibName:@"myView" bundle:nil];
[self addSu...
Hello All,
I want to upload image on Twitter.
please any one help me how we upload image on Twitter.
Please explain or provide code.
Thanks Rockydilse
...
Hey guys,
I'm looking to start a new application up - the concept's really simple I guess.
You press a button labelled '1' on the iPhone and it sends a message to the PC or Mac that makes the mac/PC respond exactly as if the number '1' had been pressed on the computer's own keyboard.
Now I think I'm going to have to do some serious re...
Hi all,
I'm trying to use push notification but I get this error:
stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.push.apple.com:2195
i've made my cert.pem using the Apns production certificate and his private key.
I've made my cert.pem using the Apps production certificate and its priva...
I'm looking to shorten the touch delay on a UIScrollView, but I don't want to use setDelaysContentTouches:NO; I still want there to be a slight delay but my users are complaining about it being too long.
Is there a way to do this?
...
I have an NSArray of NSNumbers and want to find the maximum value in the array. Is there any built in functionality for doing so? I am using iOS4 GM if that makes any difference.
...
I have an app that has UITabBarController with two UIViewControllers as its tabs. In the first UIViewController.view I have a continuous animation with repeat count set to INT_MAX. It worked fine until 3.2 and 4.0. On 3.2 or newer, when I switch to a different tab, OS skips to the end of my animations and invokes -animationDidStop:fi...
I want to call a method which returns two values
basically lets say my method is like the below (want to return 2 values)
NSString* myfunc
{
NSString *myString = @"MYDATA";
NSString *myString2 = @"MYDATA2";
return myString;
return myString2;
}
So when i call it, i would use??
NSString* Value1 = [self myfunc:mystr...
Is there a program, that you can drag a box around a specific area of an image, and it will give you the coordinates you need to input into CGRectMake?
//The numbers in here
CCSprite *sprite = [CCSprite spriteWithSpriteSheet:spriteSheet rect:CGRectMake(608,6,44,45)];
The way i do it know, is by guessing, and recompiling every time til...
Hey.
Is it possible to make a UITabBar look like a UIToolBar, while maintaining its UITabBar-functionallity?
Make the UITabBar (bottom) look like the UIToolBar (top).
Thank you.
In addition to my question, I want to know how I can change the backgroundcolor of my tabBar. Is is possible? Does anybody have a library that subclasses th...
When using UITableViewCell with UITableViewCellStyleValue1 style the textLabel.text is being truncated when detailTextLabel is pretty long.
static NSString *CellIdentifier = @"Cell";
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier] autorelease];
cell.textLabel.text = @"Publisher"...
I want to create some settings much like the Mail settings within the Settings app. These allow you to add mail accounts. I want to add accounts in settings for my app and have the new account appear in settings just like the mail app does. I haven't been able to figure out how they did it. How is this done and anyone got a sample plist ...
Hey Guys,
I am getting exception on few of my ViewControllers when I go through browsing the application.
The exception is occurring in viewdidunload, I think this is due to memory warning.
The following line gets an exception which are the IBOulet objects.
self.LabelDistance = nil;
self.distanceSlider = nil;
Please help.
Thanks
...
How is this effect achieved? Code snippets are highly welcome.
This can be seen in Notes app and other apps on the App Store.
It seem that either the buttons on the navigation controller are transparent and show the custom background of the navigation controller or that they themselves have a custom background applied to them. Any idea...