I'm using CGImageCreateWithImageInRect to do a magnifying effect, and it works beautifully, except when I get close to the edges of my view. In that case, clipping causes the image to be distorted. Right now I grab a 72x72 chunk of the view, apply a round mask to it, and then draw the masked image, and a circle on top.
When the copied...
My app uses 2 UIWindows.
The first shown has a TabBar controller with ViewControllers that only rotate to Portrait orientations. Up to here everything woks fine.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (UIInterfaceOrientationIsPortrait(interfaceOrientation));
}
On the othe...
Does anyone know what this LLVM warning means:
Method '-retry' not found (return type defaults to 'id') in sourceFile.m
I get this warning on the following line of sourceFile.m:
[self.operation retry];
My class has a variable 'operation', which is a custom class extending NSOperation.
MyCustomOperation* operation;
@property (nona...
I have a crash log from my iPad app and the corresponding dSYM file, so I can use the symbolicatecrash script to add the symbols from my code. However, I'd also like to add the symbols from the System frameworks (such as UIKit, CoreFoundation, etc.).
Is there a way to add those symbols also?
I've noticed that the Xcode Organizer will ...
Hi, I'm trying to use the glBlendFunc, but it's failing on the first call, with the error "unacceptable value specified for an enumerated argument". I've looked at the header, it appears that GL_DST_COLOR is 0x0306 (774) and that is causing the error, since (GL_ZERO, GL_ZERO) works. Any idea why this would fail like this on the iPhone?...
I have working code that will draw a page of a PDF. Now I would like to exclude a bitmapped image that appears on that page (but continue to draw the formatted text).
I understand that I can use a CGPDFScanner to scan the contents of the PDF. Is there a way to write those contents into a new PDF, but skip any bitmapped images? Or is the...
Hi,
I am using the newest newest Facebook connect API for the iPhone. I am trying to get the email addresses from friends of the my app's user. I am only considering those friends of the user that are users of the corresponding Facebook app, and that have given permission to the Facebook app to use their email address. I am performing a...
I'm a days-old iphone programmer - I'm writing a simple program based on the utility xcode template. I have a uitextfield that writes its value into a singleton object on edit. I also have implemented key observation on changes to this value. This works fine. When I flip the view to the second "flipside view" and back again the value is ...
I want to develop a specific application that only clients of mine would be able to use, how can I limit the app to be downloaded only by people who I aprove ?
Thanks !
...
I have a bunch of custom UITableCells that I have built in interface builder. These are then associated with their correct cell index and every looks great in my tableView.
Each cell has a few buttons, so rather than creating an outlet for each and every table cell button, is there a way to just "find" any UIButton types within the cur...
Why do I have to do this in order to get the sub view of the application window in the right position?
- (void)applicationDidFinishLaunching:(UIApplication *)application {
groupViewController = [[GroupMemberPickerViewController alloc]
initWithNibName:@"GroupMemberPickerViewController"
...
I have a UIImageView. In IB I attached a 'Touch Up' event on this UIImageView to call an IBAction in my code. This all works fine.
In some cases I need to resize this UIImageView in my code. I do this by settings it's 'frame' property. The resizing works fine. The problem is that the 'touch area' stayed the original size.
What I m...
Is there a way to test code using iPhone camera in the simulator?
(Somebody must have written something - you could have a replacement component that simulates the camera)
...
Hi All,
I'm trying to draw an image to the screen in a UIView subclass I'm making.
It's all working perfectly expect for the fact that my image is coming out upside down.
I'm using the code...
CGFloat height = CGRectGetHeight(rect);
CGFloat width = CGRectGetWidth(rect);
UIImage *thumbImage = [UIImage imageWithContentsOfFile:[[NSBundl...
I created a UITableViewCell in Interface Builder which I have added a UIImageView and a UIButton to. I have given the UIButton an outlet, and hooked it up to a IBAction with the touch up inside event set. I assumed it would call this method, as everything looked like it is hooked up:
- (IBAction)pressedCheckbox:(id)sender {
[sende...
I'm getting rather confused when looking over the details of the various licenses and was wondering if someone could give me a hand. Basically, I'm looking at making a simple SSH client to release on the app store. All other SSH clients on the app store charge and, although I'm sure they'd be better than what I'd make, I'd like to add a ...
I was wondering if anyone would be able to tell me how you would go about this?
e.g.
- User pushes (+) Add Button
- Image appears to let user set start point of line
- After user sets the first point a second image appears and a line is drawn between them and animated between them as user moves the second image into place.
You could s...
I have an NSMutableArray I am trying to populate using a for-loop and making NSStrings for it. These are to be the data source for my UIPickerView. You'll see some commented out lines where I manually made NSArrays and they showed up fine, but my for-loop NSMutableArray doesn't seem to accept the strings I'm making. The NSLogs show th...
I'm aware that there's the UIRotateGestureRecognizer already part of the iOS. But this gesture required two fingers. How I can implement a similar gesture recognizer requiring only one finger? There's a game in the AppStore - Gyrotate with a pretty good implementation of this. Any clues are appreciated. Thx.
...
Hi all.
Maybe there is a simple solution to this, but I'm getting headache of this, I'm fairly new with all this Core Data stuff:
I have a BankAccount class/entity with an "index" attribute, used for sorting, and a "transactions" to-many relationship to the Transaction class/entity. This Transaction entity has a "date" attribute, that ...