I have an image I am loading into a UIWebView as such:
NSData *data2 = [[NSData alloc] initWithBytes:sqlite3_column_blob(selectstmt, 7) length:sqlite3_column_bytes(selectstmt, 7)];
if(data2 != nil) {
[webView loadData:data2 MIMEType:@"image/png" textEncodingName:nil baseURL:nil];
webView.backgroundColor = [UICo...
I have a data-driven method which creates and returns instances of various UIView subclasses. Depending on the input data, it currently returns UIButtons, UITextFields, UILabels, and my own subclass, with more subclasses likely to be added later.
I want to be able to add behavior to whatever I am returning. At present, this behavior c...
I want to be able to support iOS 3.x users.
When I try to set the Base SDK in Project Info, the only SDK that appears is iOS 4.1 and iOS 3.2.
How can I add additional SDK's so I can support older users when my app hits the App Store?
...
I have a UIImageView, which I want to be able to resize and rotate etc.
Can a GestureRecognizer be added to the ImageView?
I would want to add a rotate and pinch recognizer to a UIImageView which would be created at runtime.
How does one add these recognizers?
Thanks
...
HI all,
What happens if you repeat the following code more than once ?
pointer * mypointer = [[object alloc]init];
Do you just increase the retain count of that object by one again ?
Thanks,
Martin
...
The determination of a position takes some time. When and where should the location manager be started?
Now I'm starting the location update one view before the result view (which needs the location) is loaded. If the user taps to fast I get 0.0 coordinates.
To get the right timing the startUpdatingLocation should be called three views...
I have several UIButtons, I'm trying to bulk change the font for all of them in InterfaceBuilder, but when I change the font, they auto-resize to the original image dimensions instead of what I had them set to, screwing up the layout. I would like to avoid having to resize and move everything around again any time I change the font. I ...
Hello All,
I need to perform scaling operation on UIImage and following is same code. causing a memory leak.not able to debug what is getting wrong here.
UIImage* ScaleImageWithWH(UIImage* image, CGRect aRect)
{
int kMaxResolution = 1800;
int x;
int y;
x = ( image.size.width * aRect.origin.x ) / aRect.size.width;
...
Hi everybody
I'm programming an iPhone application. This application contains a home page, which I would like to be almost the same as the one in facebook for iPhone : rows of icons, each icon corresponding to a category of my application.
I'm a newbie in iPhone development, and I can't find which control is used to show this view. Cou...
I'm creating an UIImage like this:
UIImage *img = UIGraphicsGetImageFromCurrentImageContext();
Am I responsible for releasing this?
...
Error I am getting:
*[NSURLError object]: unrecognized selector sent to instance 0x5f510e0 *
2010-10-11 11:41:33.718 CBH[15454:207] ** Terminating app due to uncaught exception *'NSInvalidArgumentException', reason: '-[NSURLError object]: unrecognized selector sent to instance 0x5f510e0' *
here is the code:
NSArray *args = [NSArray...
Hi there,
Does anybody know if there is an implementation of the wikipedia api in objective c?
which can be used to access and display the information a bit nicer then with the plain website.
I'm thinking of something like the wikipanion app but not so sophisticated.
Thanks
Joerg
...
I have finally gotten my first app to work properly and I'm attempting to send it to the App Store. In my Application Loader, I'm getting this error:
Info.plist does not contain a CFBundleResourceSpecification
I have read on the following SO question that this could be because I am Building on the simulator and then zipping up the app...
Hi, im developing iphone's app in flash CS5 and i wondering is there are new function in AS3 for specific applications on the iphone apps, and wondering too if the are component like iphone style buttons for flash. Thanks!
...
In iOS, the TabBar property in the TabBarController is read only. How can I associate a custom item with a particular view controller? How do I access the UITabBarItems inside the tabBar?
Like this
CustomView *custom = [[CustomView alloc] init];
UITabBarItem *customTab = [[UITabBarItem alloc] initWithTitle:@"Custom" image:[UIImage im...
Hi guys,
In my iPhone application I'm parsing RSS feed to get html and keep it. Afterwards I display this html in UIWebView. The problem is that html contains urls of images, if there is network connection everything is ok, UIWebView loads and displays these images, but if there is no connection it shows text but in place of images show...
Hi,
I am trying to create a custom cell with an imageview, button, textview, and a label
#import <UIKit/UIKit.h>
@interface CustomCell : UITableViewCell {
IBOutlet UILabel *nameLabel;
IBOutlet UITextView *inputText;
IBOutlet UIImageView *image;
IBOutlet UIButton *btnBuy;
}
@property (nonatomic, retain) IBOutlet UILab...
I looked around, but couldn't find this on the internet, nor anywhere in the Apple docs, so I'm guessing it doesn't exist.
But is there a iOS4 blocks equivalent API to:
[button addTarget:self action:@selector(tappy:) forControlEvents:UIControlEventTouchUpInside];
I suppose this could be implemented using a category, but would rather ...
I have an IBAction button that I would like to enable after a 30 second delay. the button would be in the view but disabled for 30 secs.
does anyone know how I would go about doing this?
here's what I have - a simple IBAction that plays some audio:
-(IBAction) playSound:(id)sender {
[theAudio play];
}
thanks for any help.
...
Hey guys,
I want to draw an image using an additive blend mode. But I don't want to use OpenGL.
I can't find anything to do this, maybe there's something in Quartz2D?
Can anyone point me in the right direction?
Cheers,
Rich
...