So ... I have an image loaded into an NSBitmapImageRep object, so I am able to examine the contents of specific pixels via a two dimensional array. Now I want to apply a couple of "transformations" to the image, in preparation for some additional processing. If I was manipulating the image manually, in Photoshop, I would:
Rotate the ...
I have attached a UILabel to view. Now i want to move that label but its not working. here is my code
UILabel *tick = (UILabel *)[self.view viewWithTag:tag];
CGRect frame = tick.frame;
frame.origin.x = newVal;
frame.origin.y = newVal;
I can change text value of the UILabel tick but how can i move it here and ther...
I need to determine how many channels a sound track has in a QuickTime movie. I can get to the track, then I am stuck. I wonder if the answer would be in a QTFormatDescription, but I can't figure out how to get one for the track. I am using Objective-C on Mac OS 10.6.
...
I have a situation where my subclass is not seeing the superclass' instance variable x. The ivar is obviously @protected by default, so why do I get a compiler error "x undeclared"?
- (CGSize)hitSize
{
// Compiler error
return size;
}
EDIT: hitSize is a property of a protocol my subclass is conforming to. The problem was that ...
Hi,
Is there any way to detect the SDK prior to 3.1.3 in the latest XCode that is 3.2.3.
Looking for answers.
Thank You.
...
Hi,
My project using libxml2. and i want to compile my application with OS 4.0 with deployment target 2.2.1
but i m getting errors for libxml2. what is the way to do this.
i want compile on OS4.0 and deployment target to 2.2.1 with libxml2 support.
Looking for answers. thanks in Advance
...
I am using several UIImage in my application which have text include in that imgage.
So I have to pinch that image in which user want to read that message that are written on the image. so please provide me some code to do this.
Thanks
...
I have a UITextView. I implemented a navigationBar UIBarButtonItem to respond to a touch and resign the firstResponder for my UITextView.
But, when the selector method is called, the keyboard doesn't get dismissed. I checked the UITextView's responder status with isFirstResponder and it returns YES. I also checked it with canResignFirs...
Hi All,
I am using in UitableView database.My table view works successfully (add single item,add multiple item,delete all) only problem is there when i want to delete single item for this i using Uitableview edit option.
so how i add database method for deleting single item from database and also from table view.
Please help me.
...
I've heard that objective-C is a proper superset of C, but is objective-C 2.0?
The reason I ask is that either it isn't, or I misunderstand the phrase 'proper superset', because this code is valid C syntax:
#import <stdio.h>
int main () {
char *nil = "hello";
printf("%s\n",nil);
}
But does not compile in Objective-C 2.0. Obv...
I want to perform animation on main thread (cause UIKit objects are not thread-safe), but prepare it in some separate thread. I have (baAnimation - is CABasicAnimation allocated & inited before):
SEL animationSelector = @selector(addAnimation:forKey:);
NSString *keyString = @"someViewAnimation";
NSInvocation *inv = [NSInvocation invoca...
Getting error: Incompatible type in assignment at fValue = ..., see the code
static float t = 0;
float d = .5;
static float fValue = 0;
fValue = [self easeOutBounce:t andB:0 andC:30 andD:d];
here is the method
-(float) easeOutBounce:(float)t andB:(float)b andC:(float)c andD:(float)d {
if ((t/d) < (1/2...
Firstly newbie question: What's the difference between a selector and a method?
Secondly newbie question (who would have thought): I need to loop some code based on instance variables and pause between loops until some condition (of course based on instance variables) is met. I've looked at sleep, I've looked at NSThread. In both dis...
My app has a lot of switches, that I create programatically, and sometimes they draw really weirdly. The right or left end is all open and the text is weird. I thought that this was an issue on on the simulator, but I have just got my iPad, and they're appearing sometimes there. I have not customised these switches via any private APIs. ...
Hi.
Is there any way to quit from drawRect: without refresh the current UIView?
For example:
- (void)drawRect:(CGRect)rect {
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetRGBStrokeColor(context, 1.0, 1.0, 1.0, 1.0);
CGContextSetLineWidth(context, 2);
CGContextMoveToPoint(context, 10.0, 30.0);
CGContextAddLineToPo...
Hi,
I want to add a Control (UILabel / UIButton ) over a playing video ,
Can anyone please make a tutorial of adding a control on a playing video. Below is the link of the project. I am stuck how to connect the UIView object ( Overlay View ) in the connections inspector.
The code is copied properly.
Thanks
http://rapidshare.com/fil...
I have a UIlabel on a UItabelViewCell, which I've created programmatically (ie not a nib or a subclass).
When the cell is highlighted (goes blue) it makes all the background colors of the UILabels turn clear I have 2 UILabels where I don't want this to be the case.
Currently I m using UIImageViews behind the UILabel's to make it look l...
The question is generally coming from self = [super init].
In case if I'm subclassing NSSomething and in my init's method self = [super init] returns object of different class, does it mean I am not able to have my very own ivars in my subclass, just because self will be pointing to different class?
Appreciate if you could bring some ...
When my iPhone app receives a Memory warning the views of UIViewControllers that are not currently visible get unloaded. In one particular controller unloading the view and the outlets is rather fatal.
I'm looking for a way to prevent this view from being unloaded. I find this behavior rather stupid - I have a cache mechanism, so when ...
In my objective-c program, I need to open a URL in Safari no matter what the system's default browser is. That means that this won't work, because it could launch Firefox or whatever other browser:
NSWorkspace * ws = [NSWorkspace sharedWorkspace];
[ws openURL: url];
I think I'm close with this:
[ws launchAppWithBundleIdentifier: @"co...