Hello,
I'm building an app which includes a number of image sequences (5 sequences with about 80 images each). It runs nicely in the iPhone simulator, but causes my iPhone to reboot when I test it. By the way, each png image is about 8k in size.
Has anyone successfully built a similar app?
Am I using too many resources for the iPhone to...
What it says on the tin: I'd like to use the @property/@synthesize syntax to define a property on my Objective-C 2.0 class, but I want to place restrictions on the range of values allowed in the property. For example:
@interface MyClass : NSObject {
int myValue;
}
@property (nonatomic) int myValue;
Implementation:
@implementat...
Hi,
I am very new to Obj-C and learning iphone development.
My question is how to add subview from app delegate.
Lets say I added subview called "MainView" from "applicationDidFinishLaunching" method.
- (void)applicationDidFinishLaunching:(UIApplication *)application {
MainViewController *aViewController = [[MainViewController all...
I want to give zoom effect to the iPhone camera image while capturing the photo. The zoom effect should be for particular part of the current image. This effect should be before capturing the image.
For the sample I create the two objects of UIImagePickerController, the code is below
.h
UIImagePickerController *imagePicker_obj1,imageP...
i have a customcell in which i have a label.now i want the text on the selected cell's label in the nextview's navigation bar? how do i get it???
...
Hi,
I have a custom class "Person".
Several Person objects have been created and added to an NSMutableArray called 'personArray'.
I'm then going to pass one of these to the next view, called userView.
These have all been Allocated and Initialised.
The code I am using is:
[userView setPerson:[personArray objectAtIndex:indexPath.row]...
I was looking at some sample code on Jeff LaMarche's excellent blog when I came across the following:
- (void)applicationDidFinishLaunching:(UIApplication*)application
{
CGRect rect = [[UIScreen mainScreen] bounds];
window = [[UIWindow alloc] initWithFrame:rect];
GLViewController *theController = [[GLViewController alloc]...
Hello,
For the application I am writing, I need to access some other applications' items, for which Applescript seems the best way to go. I have been using the Appscript framework, which worked well, because it allowed me to thread it and not make my app lock up when an Applescript was taking a while. However, now I am attempting to m...
I'm building a plain style table view with a search bar and I'm having trouble replicating the look of the "gutter" (when the table view is dragged down) in Apple's table views.
If I set the background color of the table view, the gutter looks fine, but my cells use that color as the background color.
I've tried setting the backgrou...
Hello,
So I want to bring in a modal view controller that has a UITextView in it and I want the keyboard to automatically popup and the UITextView have focus.
I found a way to accomplish this by doing the following:
textView.editable = YES;
textView.editable = NO;
This just seems hacky to me, is there another way?
...
I am trying to use the Image Capture API to grab pictures from a camera. The header file mentions a kRotateImage flag and a rotationAngle parameter for the ICADownloadFile function. I cannot get this to work however. The API seems just to ignore my requests. Anyone know if this is a known problem or if I am doing something wrong?
Here i...
I'm looking to be able to have the debugger break when it reaches a particular string match. As an example, I might have something like this:
Foo myObj = [self gimmeObj];
myObj might have a property called 'name'. I want the debugger to stop on the assignment when
[myObj.name isEqualToString:@"Bar"];
How can I set my conditional brea...
If I have an instance of class B which is a subclass of class A, is there a way for me to turn my instance of class B into an instance of class A without explicitly writing code to do it?
I do not mean simply downcasting with the standard c syntax.
...
Is there a way to know when the dismissModalViewControllerAnimated is initiated and when it is completed (such as the idiom for viewWillAppear and viewDidAppear)? Unlike other animations, this one doesn't seem to have a delegate that tells you.
...
Hey guys,
I'm trying to differentiate between two (or more) UITouch objects on the iPhone.
Specifically, I'd like to know the order in which the touches occurred.
For instance, in my -touchesBegan:withEvent: method I get an NSSet of UITouch objects. Now I can find out how many touches there are, but, which object represents which finge...
I'm trying to build a framework for MacOS in Xcode 3. It looks like it's building everything except the Headers directory according to the layout listed in the Apple documentation. I can't find anything that tells me what settings to use to get the build process to copy the headers into Headers directory in the framework, or alternately ...
How can I make my following code "DRY" (Dont Repeat Yourself)
- (void)updateLetterScore { // NOT DRY... Must fix
if (percentScore < 60.0)
letterLabel.text = [NSString stringWithFormat:@"F"];
if (percentScore > 59.0 && percentScore < 64.0)
letterLabel.text = [NSString stringWithFormat:@"D-"];
if (percentScore > 64...
So I thought that negative numbers, when mod'ed should be put into positive space... I cant get this to happen in objective-c
I expect this:
-1 % 3 = 2
0 % 3 = 0
1 % 3 = 1
2 % 3 = 2
But get this
-1 % 3 = -1
0 % 3 = 0
1 % 3 = 1
2 % 3 = 2
Why is this and is there a workaround?
...
I am trying to use key-value observing in one of my classes. I register the observers in the init method and remove/deregister them in the dealloc, but I get the following error which seems to occur before my dealloc method gets called, according to my debug prints.
An instance 0x583870 of class TekkPoint is being deallocated while key ...
I have made some code to do this, but as It doesn't work. I am only a beginner so I may be doing this completely wrong or i may have missed something out. Either way please tell me. Here is the code I have got.
[item setAction:(SEL)action {
[window makeKeyAndOrderFront:NSApp];
}
...