I want to merge 5 "sublayers" to one single texture (you know, somethin' like Flatten Image in Photoshop) in OpenGL ES 1.x iPhone. I'm new to OpenGL, and just haven't find the answer yet.
My problem is about tap detection.
I have a uiviewcontroller and there are some controls on uiview (labels, buttons, tableview, imageview, etc..)
When I tap the uibutton I display a small uiview (200x150), if the user taps the uibuttons in smallview I hide the smallview.
But I can't hide the uiview if the user taps the background.
I tried this code..
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
//NSLog(@"Touches began.");
[self hideShareView];
}
It doesn't work if I tap the another button in the uiviewcontrols view.
I just want my uiviewcontrol's uiview to react first.
I think its about firstResponder but I dont know how to set it first.
edit: i want it to work like a uiPopover in ipad.
I am getting this warning in xcode 3.1.3 iphone os 3.0.
This method is also not available in the NSDate class.
But I am getting the date from this method.
Can anyone please tell me How can I get rid of this warning????
I am new in iphone.I added 10 buttons on the scrollview.Buttons are scroll properly,but only 5 buttons are working last five buttons are not working.please suggest me what i do next.
Coming from the .NET world into ObjC and iPhone development, I'm used to providing design-time support for my UI classes. For example, say that I have a custom button class with a color property. I want to be able to set this color in design time from IB. How can I accomplish this? Is it even possible? Worth the effort?
I am developing an iPhone app that need to display some message on lock screen. I have tried to use local notification or CFUserNotification but neither of them can display the message on top of the lock screen. For CFUserNotification I have tried kCFUserNotificationAlertTopMostKey (refer this similar question) but it still not work. I am not going to hook springboard since my phone is not jailbreak. I have found an app do implement it and I have tested on my none-jailbreak iPhone iOS 6.0, don't know how to implement this.
Any help much appreciated.
I've noticed a lot of examples for iPhone apps in the Application Delegate
- (void)applicationDidFinishLaunching:(UIApplication *)application
have
[window addSubview: someController.view]; (1)
as opposed to
self.window.rootViewController = self.someController; (2)
Is there any practical reason to use one over the other? Is one technically correct? Do controller's have the an equivalent command to number (2) like
self.someController.rootController = self.someOtherController; // pseudocode
I'm writing a game for iPhone, and I want an online leaderboard using mySQL, which i'm very familiar with.
How do I implement this in my app?
I would assume there's a framework/library i need to obtain?
At WWDC 09 in Session 304 "Game Development for iPhone, Part 1 (Graphics, Audio)", about 6 minutes after start of the Session, they showed off a small but nice OpenGL ES game demo and repeating over and over again how easy it is to implement. Is that source code of the demo available somewhere for download?
Hi i am new to iphone developement , can any one explain me , why setDelegate is used, where we should use it.
[request setDelegate:sender];
thanks in advance.
hi,
i am developing iphone application which included UIImagePickerController Source type is UIImagePickerControllerSourceTypeCamera. In this how i can get audio values from mice as-well as i have to show it and should have option to on- off. So please help me to overcome this issue. i searched completely from UIImagePickerController document. its not having any audio property.
Thanks in advance....
Hello,
I tried CoreData for iPhone app, but it's memory-hogging when entity instances are fetched. After they are released, memory usage doesn't decrease at all. Is there any way to treat them in a low memory usage.
Thank you.
hi,
i am working on iphone project, i like to create an svn folder and link that one to my server
I tried to run the below command
fsp3s-MacBook-Pro:~ fsp3$ svnadmin create /ram/Code/SVN
i got the below error
svnadmin: Repository creation failed
svnadmin: Could not create top-level directory
svnadmin: Can't create directory '/ram/Code/SVN': No such file or directory
How to create an SVN folder in mac os x?
thanks!
I have a series of buttons that have suit symbols on them. Currently I provide these suit symbols as bitmaps. In preparation for iPhone 4 I'd like to use text instead. However Interface Builder rescales the button to account for whitespace underneath the symbol so I can't get the image to fill the button completely.
Any hints on getting Interface Builder to behave?
Hello, once hardware is rotated, I use (void)didRotateFromInterfaceOrientation to adapt view when rotation is enabled but, wich method or how to detect that iphone got back to vertical position in order to readapt view???
I found email composer sample code from iphone OS Ref Library. Here is a code-
Code:
NSArray *toRecipients = [NSArray arrayWithObject:@"[email protected]"];
NSArray *ccRecipients = [NSArray arrayWithObjects:@"[email protected]", @"[email protected]", nil];
NSArray *bccRecipients = [NSArray arrayWithObject:@"[email protected]"];
My question is how to take user's input? Here all email address are predefined in code. so what are the IDs of to, CC, Bcc, subject and body fields?
Hi i am new iphone i want to developing a application that is work on touch event. in this when user touch on screen then show a label msg u touch on right and same.
how to do this i im confused plz tell me.
I'm trying to write an iPhone offline webapp using jqtouch/jquery. When I disable my connectivity, it looks like the jquery .load() function silently fails and doesn't even call its callback function. I've set $.ajaxSetup ({cache: true}); but it seems to have no effect. I also have my manifest file etc. working fine - the only issue is the .load() function.
Any ideas?
I just noticed that the twitter integration on the eBay app has the same style as the official Facebook connect SDK.
I've done a search and found nothing.
Did Twitter release this kind of support for iPhone SDK?
Thanks every one!
I have a PDF loaded in an iPhone app using UIWebView and it displays page numbers when the pages are scrolled manually. But I've had no luck figuring out how to access those numbers and set the page displayed. Any suggestions would be welcomed. Thanks.
My iPhone app started logging this error:
lo-hi recycling invariant violated!
followed by:
Program received signal: “EXC_BAD_ACCESS”
whenever I launched it on my iPod (3.1.3) and sometimes when I launch it in the simulator.
What does this error mean, and how can I fix it?
I am using cover-flow in my app. I think this might be the problem.
Thanks in advance.
Hi all,
I have RGB values that I need to convert into CMYK values. I'm using the iPhone SDK to try and do this.
I have tried a couple of things, but cannot either get the values to be anything other than 0 or 1, or the K element is completely wrong (showing up as a negative number).
Any help would be a life saver!
Thanks in advance!
Hi
i am new in iphone i am using sqlite3 database. and I am retrieve value from database into table view. when we insert new data into database this is show in the table view but this is not inserted database table. i am not able to find out where this value store.
plz tell me
Hello,
In my iPhone application, I need to calculate the time difference between the time a message was created on the server, and the time my phone received it.
The server (Java) puts in a number returned by System.currentTimeMillis() as metadata along with the message.
How do I compare this number with the current time on the device? Could not find a suitable NSDate method to do this comparison.
Thanks in advance!
In iPhone I need to set the background view of a UITableview. From 3.2 SDK I can in code use something like:
[self.tableView setBackgroundView:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"mycustombackground.png"]]];
But how can I do the same in interface builder? It would be great if I could just set the background view directly in interface builder. But can't seem to find this property, where is it?
Thanks!