I asked this question earlier and am now trying to explore the idea of making an offscreen image.
Something is going wrong - I think maybe with colour space? I've boiled the code down and down and down, until I eventually can demonstrate the problem with just a few lines.
I have a view with an imageview (called iv) and a button, which...
Hi all,
I am trying to add a curved border around an image downloaded and to be displayed in a UITableViewCell.
In the large view (ie one image on the screen) I have the following:
productImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:product.image]];
[productImageView setAlpha:0.4];
productImageView.frame = CG...
I want to draw a long NSString with UIStringDrawing and linebreakmode "word wrap". The problem is, that it only draws one line also with this linebreakmode parameter. Do i have to calculate this manually and split the string into an array to draw each line?
I don't want to use UILabel with numberOfLines stuff. I put emphasis on performa...
I have made an app that gets an array of addresses from a web service and I want to map them. I know Apple left this out in MapKit, including only a reverse GeoCoder. I was wondering what the best way to approach this problem was. Web Service? Google Maps API (How do API keys work?)? CloudMade?
What is your opinions on which service is ...
I have a Brightcove account with read tokens for my media and need help with an issue xcode will not read the iPhone simulator lib path in the Brightcove sdk on my mac, I want to know how to change this path to work with the applle iphone simulator in the apple iphone sdk?
...
Hi,
I am trying to animate my new views as they come in or go out and can't seem to figure out how to do this. I have tried several different things to no avail. Here is the code on how I load them:
(void) displayView:(int)intNewView {
NSLog(@"%i", intNewView);
[self.currentView.view removeFromSuperview];
//[self.currentView.view ...
In UITableViewCellStyleDefault, setting the contentMode on the imageView has no result. If I change my build SDK to version 3.1, everything again works.
I don't get any warnings or errors when compiling on 3.0 but this code:
cell.imageView.contentMode = UIViewContentModeScaleAspectFit;
cell.imageView.image = [UIImage imageNamed:[[NSSt...
see this:
http://developer.apple.com/safari/library/documentation/appleapplications/reference/SafariJSRef/index.html#//apple_ref/doc/uid/TP40001482
they are :
CSSRule Additions
Document Additions
DOMApplicationCache
DOMWindow Additions
GestureEvent
HTMLAudioElement
HTMLMediaElement
HTMLVideoElement
Touch
TouchEvent
TouchList
WebKitAni...
I have an array of strings that I want to use for button titles on a UIActionSheet. Unfortunately, the otherButtonTitles: argument in the method invocation takes a variable length list of strings, not an array.
So how I can I pass these titles into the UIActionSheet? The workaround I've seen suggested is to pass nil into otherButtonTitl...
I am dealing with an old code designed for iPhone OS 2.0. In this code I have some instructions that we deprecated on iPhone 3.0.
I am not willing to change the version because I have many customers, specially on iPod Touch, that are still using 2.0. If I update the instructions they will be unable to continue receiving the updates.
Th...
My application has a UIScrollView with one subview. The subview is an extended UIView which prints a PDF page to itself using layers in the drawLayer event.
Zooming using the built in pinching works great. setZoomScale also works as expected.
I have been struggling with the zoomToRect function. I found an example online which makes a C...
I have created a java server, which takes screenshots, resizes them, and sends them over TCP/IP to my iPhone application. The application then uses NSInputStream to collect the incoming image data, create an NSMutableData instance with the byte buffer, and then create a UIImage object to display on the iPhone. Screenshare, essentially....
I have an app which contains a scrollview with several tableviews. Each tableview is loaded from another viewcontroller. It is built from the PageControl sample app from Apple. My goal is to have it work exactly like Apple's weather app.
I have everything working just fine. All content loads perfectly and scrolling side to side displays...
Beginner programmer. Working on a timer app.
The following applicationWillTerminate saves the state of started, stopped, startTime and stopTime and invalidates the timer. The intent is to be able to terminate application then restore state and restart timer on app restart.
//Save status to file on applicationWillTerminate.
- (void)ap...
how can i get a uitableViewCell by indexPath? like this:
i use the UIActionSheet when i click confirm button i wan to change the cell text
the nowIndex i defin as a property
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
if (buttonIndex == 0){
NSInteger section = [nowIndex section];
...
Hello everyone
I try to add Message.framework to my project frameworks directory.
After that I compile my project,(no additional codes) it reported that
Command/Developer/Platforms/iPhoneSimulator.plateform/Developer/usr/gg-4.2 failed with exit code 1
Welcome any comment
Thanks
interdev
...
Trying to get Xcode to work with Subversion server.
Server: Subversion upgraded to 1.6.9 (Mac OS X Leopard 10.5.8)
Client: Xcode 3.2.1 (Snow Leopard 10.6.2 with
Subversion 1.6.5 though not sure that matters)
Repository on server is setup and working fine via command line.
However, I get an error when trying to create the Repository...
How to make UIwebview Scrollable
...
NSNumberFormatter * fmt;
NSNumber * n;
fmt = [ [ NSNumberFormatter alloc ] init ];
n = [ NSNumber numberWithFloat: 10 ];
[ fmt setFormatterBehavior: NSNumberFormatterBehavior10_4 ];
[ fmt setCurrencySymbol: @"$" ];
[ fmt setNumberStyle: NSNumberFormatterCurrencyStyle ];
// NSLog( @"%@", [ fmt stringFromNumber: n ];
[ fmt ...
I want to take a user OUT of my app and into the App Store when they click on a link within a UIWebView in my app. But when I click on the link, nothing happens (sim AND device both). How can I jump to the App Store from a UIWebView link in my iPhone app?
BY THE WAY:
The link in my UIWebView html is as currently follows (minus the self...