Hi all, I am having an issue using CGBitmapContextCreateImage in my iPhone app.
I am using AV Foundation Framework to grab camera frames using this method:
- (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection {
CVImageBufferRef ...
Hello,
I would like to take images from library, or camera and upload them to a remote server, where I could then retreieve a URL for each image uploaded.
Im looking to get started from scratch. And am looking for some help on where to start.
Im need to do this the simplest way, php and mysql.
Where should I start?!
Also, I rather no...
Hi,
How do i create dynamic properties on an object in objective-c?
in ActionScript we can do something like this
var obj : Object;
obj[ "myDynamicProperty" ] = true;
trace( obj.myDynamicProperty );
How would i do this in objective-c?
I have tried the following
NSObject *obj = [[NSObject alloc] init];
[obj setValue:@"labelValue" fo...
I'm attempting to write an app that can arrange timed playback of some (mostly tiny) audio files. The catch: it needs to be timed with accuracy worthy of music. The sounds won't be played frequently (it's not, for example, a sampler or a drum kit), but they will need to be absolutely precisely placed. There are two parts to this question...
Howdy all,
I am working on a simple Core Data app. I have two classes: Client and Home. There is a one-to-many relationship between Clients and Homes (i.e., a Client can have many Homes. Among other attributes, the Home class has one called purchaseDate.
I am trying to write two methods on the Client class: -homesByDate and -firstHo...
Hi, everyone,
I want to ask a question about the UIview on the iPhone applicaiton. I want to display a image one the UIView programmatically, but I don't know how to do it. What should I do to display the image. Thank you very much.
...
Hello,
in an iPhone app, the User can create Items - each Item needs to have a CGPoint, NSString and a few integers with information about it. The User can keep adding these Items.
How can i store all these variables for each of the Items and programmatically keep adding them to a list or array or something?
I tried using a struct arr...
How would I go about updating an object declared in the RootViewController from my MainViewController?
I'm attempting to hide my info button when my iAd is tapped, I have all the relevant pieces of code for the iAd in place, but can't figure out how to code the action. I saw an example of a similar situation online that was like this:
...
Hi, everyone,
I want to ask a question about the UI item on the UINavigationBar on the iPhone application. Im my program, there are a navigation bar and UITableView, like the following structure.
UIView (DataRootViewController.m)
|
+- UINavigationBar
|
+- UITableView
And, I want the it display the detail of the data when the user pr...
Hi, everyone,
I want to ask a question about the objective C or may be the C language. I want to ask what is the meaning of the following code of #define? Is it like to declare a variable? Thank you.
#define kMountainNameString @"name"
#define kMountainHeightString @"height"
#define kMountainClimbedDateString @"c...
What is the difference between adding the subview to self and or to the content view?
Subview added to self
- (id)initWithFrame:(CGRect)frame { if ((self = [super initWithFrame:frame])) {
UIImage *img = [UIImage imageNamed:@”lol.jpg”];
UIImageView *imgView = [[UIImageView alloc] initWithImage:img];
[self addSubview:imgVi...
How do I programmatically make phone calls on the iPhone?
...
How should I declare a global variable in my Objective-C project?
...
Hi all,
I have this simple method for returning the file path. I am passing the file name as argument. Then when I call this method this method returns 'null' if running on device but works fine on simulator. Is there anything I am doing wrong?
-(NSString*) getFilePathForFile:(NSString*)fileName
{
NSArray *array = NSSearchPathForDi...
Hi, everyone,
I want to ask a question about the objective C on iPHone application. I read some sample program in the apple developer website and I found that almost all of the applications contains a word called 'NSBundle' and 'mainBundle', and I really don't understand the meaning of this word. Can anyone tell me about that? Thank you...
I am trying to use NSUser Deafault in my application user have tp fillup 4 UITextFields. I am trying to save the fields so that on subsequent runs of the program that whatever they previously put will already be displayed in those UITextFields so the wont have to re-input it in - unless they want to edit something in which case they stil...
I have a very unusual problem.
I am using NSXMLParser to parse XML but it is not being able to parse self closing tags!
If the XML is something like "< media:something ....... / >", when I parse it and output the elementName in didStartElement: method, there's no output for the particular tag.
All other tags which are not self closing a...
Hi,
I am using both methods in my project, can you please let me know, which one is best for in which situation?
Regards,
Sri
...
NSString *contentPath = [[NSBundle mainBundle] pathForResource:@"test2" ofType:@"rtf"];
NSData *databuffer;
NSFileHandle *file = [NSFileHandle fileHandleForReadingAtPath:contentPath];
if (file == nil)
NSLog(@"Failed to open file");
databuffer = [file readDataToEndOfFile];
[file closeFile];
NSString *contentText =[[NSString alloc...
Hello,
I did the "Build and analyze" in xCode and get "Dereference of null pointer" when setting a normal int to 0 in my init-method. I noted in my code below for which row I get the message. I'm developing for iPhone.
Bric.m
#import "Bric.h"
@implementation Bric
- (id)initWithImage:(UIImage *)img:(NSString*)clr{
if (self = [su...