I have some ideas for software that can create HDR images or panoramas. I'd like to learn how to do these myself, for example how to create algorithms for image alignment, combining parts of images for HDR & tonemapping, etc. (Preferably in C/Obj-C, though the concepts will apply to any language.) Where are the best places to learn about...
From what I have experienced it seems as if objects cannot be shared data members in objective c. I know you can init a pointer and alloc the object in each method but I cannot seem to figure out how one can say define a NSMutableString as a data member and allow all of the methods to use and modify its data as in c++. Is this true or am...
Are there side-effects to calling a custom getter with dot notation?
I had been using a synthesized getter in Objective-C via the dot notation, i.e.
tree.fruitnumber
returned the number of fruits in tree. I had to customize the getter (for reasons not pertinent to this question). I wrote it as
-(int) fruitnumber
{
//climb into tr...
Hello, how would you copy the last object of a array and then add the object to some array. So in other words i want to take the last object of someArray and copy that lastObject to someArray2.
Thanks,
-David
...
hi i am new to iphone Development...i have a problem that my application having UIScroll View on the top of table View having custom button.when user taps the button i want to load the same View controller Class with Same nib...With different Functionality.Can any one help for this..
thx in Advance...
...
My app currently has what I'm pretty sure is a bad design, but I'm not sure how I can organize it any better. For example: LoginViewController sends the input text for the username and password to an instance of UserController. UserController sends a request to my server to validate the username and password, via NetworkRequestControl...
I am not able to Hide the iphone Camera shutter opening animation for my app.
I am using UIImagePickerController to access iphone camera and using my own overlay controllers.
Is there a way to remove the initial shutter(also known as Iris) animation as the camera starts.
Thank You
...
Hello,
I recently updated our test iPhone 3G with the latest version of iOS 4 to be able to test our apps on the new OS. I regret that I didn't read the forums because after the update the device's performance suffered a lot. However this is not a problem because the device still works. The problem is that when I try to debug our app th...
I have a a singleton class here is the code
#import <Foundation/Foundation.h>
#import "CustomColor.h"
@interface Properties : NSObject {
UIColor *bgColor;
CustomColor *bggColor;
}
@property(retain) UIColor *bgColor;
@property (retain) CustomColor *bggColor;
+ (id)sharedProperties;
@end
#import "Properties.h"
static Properti...
Hello all,
i want to parse a xhtml file and display in UITableView. what is the best way to parse xhtml file so that i could be able to display as it is shown in browser. here is a sample xhtml source
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"...
For some reason, I'm having this issue randomly pop up where a method that's being called receives a bad address and causes the app to crash. Sure, that's not uncommon, but when I check the frame above the crashing method, the address of the object that I'm passing in is completely different than the address of the argument in the called...
How can i write a global method that can be called anywhere in my iPhone App
Can any one Help Please....
Thanx and regards Balu.....
...
How do I read the image color information for each pixel of PVRTC image?
Here is my code extracting the integer arrays
NSData *data = [[NSData alloc] initWithContentsOfFile:path];
NSMutableArray *_imageData = [[NSMutableArray alloc] initWithCapacity:10];
BOOL success = FALSE;
PVRTexHeader *header = NULL;
uint32_t flags, pvrTa...
The title sums it up. Would that be possible, as in, is the data structure of a PLIST file possible to generate efficiently via PHP for an Objective-C app to read? Or, would a different format like XML be better?
I'm more keen to go with PLIST as I hear it's easier to parse from Obj-C, and won't require any external libraries (this is f...
in objc.h , there is definition for Class
typedef struct objc_class *Class;
typedef struct objc_object {
Class isa;
} *id;
Case : use Class in NSObject :
/*************** Basic protocols ***************/
@protocol NSObject
- (BOOL)isEqual:(id)object;
- (NSUInteger)hash;
- (Class)superclass;
- (Class)class;
- (id)self;
Hard ...
I am developing an iPhone application where I need the user to give his email address at login.
What is the best way to check if an email address is a valid email address?
...
Hi,
I'm building an iPhone app, and am just wondering what's the best way to "send" data from one view to another? For example, if I have a UITableView full of information (table.data), and when pressed I show a "detail view" and want to give the user the option to open up a URL shown in the "detail view" in an in-app web browser, how d...
Let's say I have a class DataFeed which creates an instance of another class, Parser, as part of its work. i.e.
Parser *parser = [[Parser alloc] init];
[parser start];
I'm writing unit tests for DataFeed. I want to substitute a mock for the Parser. I can't work out how best to do this. I'm sure I must be missing something really obvio...
I have a counter which I use to get an object at that counters index and I need to access it in another class.
How are static variables declared in Objective C?
...
Hey all,
I'm a bit confused now. I thought that when you used extern on a function, it would become global to everything, but it doesn't seem so... What I want right now, is to have some set of functions that I can use in my static library and in the program that links it. How do I that?
I'm using Objective-C
...