Hi all!
my view controller is set to accept accelerometer delegate, and if I put the accelerometer value inside a label works...
after I tried to move an UIImageView into my ViewController and nothing happens
(the image is putted into the view from the interface builder...
(i try to move the image using the frame origin properties)
thank...
I started by creating a universal window based app. Starting with the iPhone version I created a UIViewController and associated nib.
My App delegate:
rootViewController = [[RootViewController alloc] initWithNibName:nil bundle:nil];
[window makeKeyAndVisible];
[window addSubview:rootViewController.view];
return YES;
My RootViewContr...
Hi,
I need in animation of sequence of more PNG files (300 png files and size is 320x480).
I've try make it with 12 fps, but sometime iPhone 3g have lags... 3gs working fine. I think 2g working with lags always.
I've use one UIImageView and loading images in NStimer callback by UIImage:imageWithContentOfFile.
May be this is not best w...
I am repeating my codes few times to create custom buttons, I am trying to create a method and create all my required buttons just by called that method and using two parameters, btnTitle and btnAction.
My Codes for the method
-(void) addnewButton:(NSString *) btnTitle withAction:UIAction btnAction; {
// Add a custom edit navigati...
Is there any way to do this?
In other words, is it possible during a call to allow the user to open a certain application? (for example, to provide information based on the person who is calling).
If not, will something like this be available on iOS 4?
...
I'm developing a game/engine for iPhone OS. It's the first time I'm using Objective-C.
I made my own binary format for geometry data and for textures I'm focusing on PVRTC. That should be the optimal approach as far as speed and space are concerned. I really want to keep loading time to a minimum and - if possible - be able to save very...
I'm looking for resources, screencasts, books, courses, sites and the like to assist with learning Objective-C with the intention of developing applications for Apple's iOS 4.
My development team has access to Apple's development program, and is largely coming from a similar background: they're Comp Sci graduates that have experience wi...
I try to use sqlite on iPhone. But I have the following problem:
NSData * image = [[NSData alloc]initWithContentsOfURL:[NSURL URLWithString:image_url]];
NSString * query = @"INSERT INTO PHOTOS( image_url, image ) VALUES (?, ?)";
NSInteger result = -1;
sqlite3_stmt * pStm;
do {
if (sqlite3_prepare_v2(database, [q...
I have a picker that prompts the user to choose a gender and an age group (17-21, 22-26, etc.)
These 2 choices determine which view the user will be brought to after pressing the button, but I am having troubles writing the method for that button. The code I have so far is this:
- (IBAction) buttonPressed {
NSInteger genderRow = [gend...
Since i am new to iphone and mac dev, which is the suggested way to connect your application to an sql server/sql server express 2005 database (in my case to sync data with sqlite)?
Thank you
...
I'm implementing a document viewer with highlighting/annotation capabilities for a custom document format on iPad. The documents are kind of long (100 to 200 pages, if printed on paper) and I've had a hard time finding the right approach. Here are the requirments:
1) Basic rich-text styling: control of left/right margins. Control of fon...
I have a php query the returns the following JSON format from a table.
[{"memberid":"18",
"useridFK":"30",
"loginName":"Johnson",
"name":"Frank",
"age":"23",
"place":"School",
},
It needs the following format:
[{"memberid":"18" {
"useridFK":"30",
"loginName":"Johnson",
"nam...
Now that I installed SDK 3.2 for my iPad development, I need to build with the previous version for my old iTouch. Is this possible to switch or do I have to uninstall 3.2, install 3.1.x and re-install 3.2 in a "versioned" folder?
...
The default UIWebView class loads whole HTML pages and this could cause “out of memory” problems if the website has long/complex HTML pages and also it generates slow/jerky vertical scrolls. (Try to load engadget.com in a UIWebview using an actual iPhone and you will see the problems with vertical scroll)
It seems that Safari and iCab A...
hi i would like to ask one intresting question
i should disable or remove label from my view when certain event ocuurs
how can i disable it can any one give me a syntax for that one
i hope i will get answer
...
I'm diving into iPhone development and one of the core concepts im trying to get my head around is view controllers. If you look at the GLPaint example on the apple dev site, you'll see a project that has...
An app delegate class
A uiwindow subclass
And a uiview subclass
And the uiview subclass implements all the core graphics paint...
I have a 100x100 pixel image that I want to draw at various angles rotated around the center of the image. The following code works, but rotates around the original origo of the coordinate system (upper left hand corner) and not the translated location. Thus the image is not rotated around itself but around the upper left corner of the s...
NSString* str = [[NSString alloc] initWithString:@"0.05"];
NSDecimalNumber* num = [[NSDecimalNumber alloc] initWithString:str];
NSLog(@" %@", num);
[str release];
[num release];
leaks memory
*** __NSAutoreleaseNoPool(): Object 0x707990 of class NSCFString autoreleased with no pool in place - just leaking
Can someone suggest a worka...
One of my views is a UITableView which acts as the delegate for an AVAudioPlayer and this table essentially plays sounds when you select a certain row with options to repeat the sound after its finished playing.
However, I noticed that if I select a cell with repeat ON for a certain sound and then scroll through the UITableView to sel...
Hey guys,
I declared a NSMutableArray in the header-file with:
NSMutableArray *myMuArr;
and
@property (nonatomic, retain) NSMutableArray *myMuArr;
In the .m file I've got a delegate from an other class:
-(void)didGrabData:(NSArray*)theArray {
self.myMuArr = [[[NSMutableArray alloc] initWithArray:myMuArr]retain];
}
If I want to...