In iOS's Mail app, when you enter in the email of someone who is in your contact list it formats the text in an interactive bubble. I can't seem to find any obvious way to do this, and it's exactly what my app needs to do, and I'm not even sure where to start.
Any pointers to where to look would be appreciated!
...
I have recently started using Neon intrinsics in my iOS image convolution code and have a shaky grasp at best. Right now, I get to the pixel data from CGBitmapContextGetData (cgctx); but I would like to take advantage of de-interleaving using vld4 (ARGB data). What is the best way to do this? I'm sure it's one of those simple things I ...
How would I convert an NSString like "01/02/10" (meaning 1st February 2010) into an NSDate? And how could I turn the NSDate back into a string?
...
Hi,
currently i'm trying to access the files that are transferred using the new ios feature introduced with 3.2.
- (NSString *)getPrivateDocsDir {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
documentsDirectory = [do...
Hi,
I'm trying to clip a region of an UIView, into a UIImage for later reuse.
I've worked out this code from some snippets:
CGRect _frameIWant = CGRectMake(100, 100, 100, 100);
UIGraphicsBeginImageContext(view.frame.size);
[view.layer renderInContext:UIGraphicsGetCurrentContext()];
//STEP A: GET AN IMAGE FOR THE FULL FRAME
UIIm...
Hello.
Games like FroggyJump for iPhone figure out the rotation of the iphone. I'm getting confused with the acceleration values. How do I calculate the level of rotation? I suppose I need to consider when the iphone isn't perfectly upright.
Thank you.
I'm also wanting to use the new Core Motion framework with the "Device Motion" for...
I am researching for an application at the moment. One of the interesting ideas that came up were to record from both front facing camera and the facetime camera at the same time. Any of you know if this is feasible?
Thanks :)
EDIT:
I mean to say front and rear cameras. I want to record from both cameras at once to two separate streams...
I've got a UIPickerViewModel that's supposed to fire an event when its selected value changes, but by the time Selected is called, the EventHandler is null. Code (somewhat simplified):
public class MyPickerViewModel: UIPickerViewModel {
public event EventHandler SelectionChanged;
public void PrintWhetherSelectionChangedIsNull()...
I have following code that I use to play a selected portion of a movie clip. The movie plays okay. But the scrubber bar does not reflect the correct start stop time. Also, the forward and rewind buttons take the clip beyond the segment that was specified. Why is this and can we fix it?
TIA.
MPMoviePlayerViewController *mp =
[[MPMov...
I'm developing a simple writing app for iPad.
I'm trying to compute the pixel-position of the cursor in UITextView. I spend a few weeks to design this, but I still couldn't figure out to do it.
In stackoverflow, Tony wrote one good algorithm to find the pixel-position of the cursor.
http://stackoverflow.com/questions/2633379/pixel-pos...
I know that a user can only download up to 20MB over 3G, and my build/Release-iphoneos is showing my app at 26MB.
I'm linking against the three20 iPhone framework.
Is this the final size that will count against the 20MB max when submitted to the App Store?
Is there anything I can do squeeze this even lower? (I'm using a bunch of PNG'...
Is it possible to invoke an app automatically when it encounters a crash in iPhone/iPad? If so, any pointers will certainly help. Thanks!
...
I am presenting table view contents using NSFetchedResultsController which has a predicate:
[NSPredicate predicateWithFormat:@"visible == %@", [NSNumber numberWithBool:YES]]
On background thread using separate NSManagedObjectContext I update few of the entities and change theirs visible value from NO to YES. Save, merge changes in mai...
I have implemented thread-targeted notifications as per the Apple document "Delivering Notifications To Particular Threads" (http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/Notifications/Articles/Threading.html#//apple_ref/doc/uid/20001289-CEGJFDFG) in my app, and it works great when run in the Simulator (iPhone 4 ...
I want to check the network requests an app is making from my iPhone. It's on the same WiFi network as my computer (or if it makes things easier, I can set it up to use an ad-hoc network). I don't want to see every packet, just the URLs which my iPhone is requesting. I don't care about the returned data all that much.
A simple solution ...
After an incoming call is declined, the iPhone web app that I've developed completely becomes unresponsive. The app is written in HTML, CSS, JavaScript, jQuery, and jQTouch.
If the call is accepted, then the app restarts after the call ends. I’ve read that it is normal for iOS to terminate your app when a call is accepted. (I do not kn...
Hi guys
Can anyone recommend me a good logger for cocoa, something that should be in par with log4j.
I've been developing this app in cocoa & as the source code is growing I find my self craving for a logger. I've googled a bit, have found a few options but I am looking to hear from you guys & your experiences with these loggers.
I l...
Hi everyone,
I'm trying to implement a custom UIView that mimics the behavior of UIScrollView for some reason. And the question is how can I show the proper part of the content which is represented by the contentOffset property?
I've analyzed UIScrollView and found that it doesn't adopt any inbetween sublayers or manipulate the bounds ...
I need to get the url that a UIWebView is displaying after the user clicks on it once.
I've tried putting a button which calls a method which determines the url, under the UIWebView, but this way the button doesn't work. I've tried putting a button over a UIWebView but this way it gives not the url after the click, but the starting url...
I have created a custom settings using the standard root.plist approach for the iphone. I'm wondering if there's a way to determine when the user changes those settings in my app...
...