Drawing Inner Shadow with CoreGraphics
I know that you can use CGContextSetShadow to draw a drop shadow, but is there any way to draw an inner shadow? ...
I know that you can use CGContextSetShadow to draw a drop shadow, but is there any way to draw an inner shadow? ...
Not able to play flv video in ipad /iphone in safari web-browser, any reason ?? However, i can play same video in mac system (in safari web-browser). ...
Hi! I'm using the "famous" :) function createEditableCopyOfDatabaseIfNeeded for create an editable copy of my db in an iphone app.. The function copy the original db in the documents directory only if there isn't already a copy of the db.. pretty simple.. but now I'm in trouble because I don't know why but with SDK 3.2.3 in iOS 4.1 the f...
Can someone please assist me with converting special characters to something that can be correctly represented in an RTF file? I am taking text stored in a string on the iPad and outputting it as an RTF file using NSASCIIStringEncoding. So far so good. What I've neglected to do successfully, is take into account special characters (e.g....
Hi there. I'm planning in developing a web app that will include a map-like page and it's targeted mainly to iPhone users. Is there any javascript library that can help me build a map-like component (using my own tiles / images) ? I found some that only work on the PC browsers, but none for the mobile devices. Something that will handl...
I'd like to display a temporary message on the iPhone/iPad displaying confirmation of an action, or some quick status about some background activity. Is there a standard control to do this? I've seen apps do this. A rounded rectangle, dark and partially transparent with text inside. It does not ask for user input but disappears on its o...
Hello , i have noticed that a PSTextFieldSpecifier in any Settings.bundle has the following issue: The default keyboard (KeyboardType property set to Alphabet), does not dismiss keyboard when i hit "return" button...Is there a way to dismiss the keyboard when editing such a field ? Thanks in advance. ...
cell.textLabel.text = [NSString stringWithFormat:@"your name: %@", yourName]; I need yourName to appear in red (while "your name" stays the default black color). Possible? How? ...
I'm trying to get a better understanding of the UINavigationController. I have 3 .xibs. From .xib1 I am pushing to .xib2. I have to pass data to .xib2 from .xib1. Controller1 *selectcity = [[Controller1 alloc]initWithNibName:@"Controller1" bundle:nil]; selectcity.item1 = @"hi"; // Push the next view onto our stack [self.navigationCo...
Hej folks, I got an UIView in my application and want to implement kind of a swipe gesture. I know how I detect this gesture (touchesBegan: and touchesEnded: for example is x coordinates are distanced more than 100 pixels or something else) but I really don´t now how to animate my needs. In fact my UIView will contain subviews which are...
Hi, I am trying to scrape some content from an HTML page. I'm using libxml2 and htmlReadMemory to get a xmlDocPtr. The HTML is simple, but it has a problem. It's basically the following: <tr><td><tr><td>Some content</td></tr></td></tr> libxml doesn't like the nested tr, tds. It keeps giving me the following error: HTML parser error ...
Generally speaking, how does an app like "Around Me" acquire the information it displays? For example: the restaurants that show up in a list that are near me with the address and distance (I think I get the distance piece) where is this information extracted from? Is it Google or something? I'm not asking how to implement this (that's ...
Hi all, I am having a NSString object which I am converting to NSDate with help of NSDateFormatter. Now code works fine here with all the OS but it is creating different Output at client's add (USA region). Here is the code that I am using. NSDateFormatter *formate = [[[NSDateFormatter alloc] init] autorelease]; [formate setDateFormat:...
Hello, I was wondering how you would move a CCSprite right and left by tilting the device right and left. Like in the falling balls app. Thanks in advance, John ...
I'm trying to figure out the track number of the MPMusicPlayerController's nowPlayingItem in its playlist. This would be super simple, except for the fact that the same song can appear multiple times in the same playlist (as in they both point to the same file). For example, if a playlist consisted of Song 1, Song 2, Song 1, Song 3, Song...
I understand how to include a standard alert within my iPhone application, and can dismiss it with an OK or CLOSE button (see Epicurious example in image). How can I make a cool alert/notice overlay like the one seen in the foursquare app (see foursquare example in image)? In particular, how to include the alert/notice layout with graph...
I'm using MonoTouch and also System.Data to create a DataSet (just xml to those not familiar) for simple data binding. Data on my app is minimal so no need to go all out with SQLLite. The dataset use makes it easy to pass via web services for cloud sync. I serialize the DataSet to the personal folder on save and of course read this fi...
How you do you "create promo codes" for an app as given in the answer by David Maymudes (below question link)? Is there an iOS UI for it? http://stackoverflow.com/questions/2104922/how-to-restrict-application-distribution-to-a-group-of-users-only-via-apple-appst/3738582#3738582 ...
I am trying to reduce ceremony and out of academic curiosity I want to know how to do the following without the IBAction method defined in the .m file to use a closure whenever an Interface Builder wired action occurs such as a button press. You could say that I want to imply the cancelButtonPress method below instead of having to defin...
Recently, I've been getting intermittent error reports from my app claiming "unrecognized selector" in areas that could not possibly cause them, and yet they do. For example, this one: Error: NSInvalidArgumentException: *** -[NSCFString didReceiveMemoryWarning]: unrecognized selector sent to instance 0x541fe0 0 CoreFoundation ...