I'm creating a reusable framework for displaying notifications in an iOS application. I'd like the notification views to be added over the top of everything else in the application, sort of like a UIAlertView. When I init the manager that listens for NSNotification events and adds views in response, I need to get a reference to the top-m...
I'm trying to utilize a class from the Google Toolbox for Mac libraries, for unescaping HTML text. Specifically, I'm using GTMNSString+HTML.h and GTMNSString+HTML.m.
Where I'm trying to escape the text, I'm doing this:
NSString *escaped = [ gtm_stringByEscapingForHTML:_item.body ];
But when I try to compile I'm getting an error:
'gt...
Have a look at the following screenshot fragment from an iPad app I am working on:
The "chat bubble" icon on the left is from the famous Glyphish icon set. Note how it has correct vertical positioning (in the middle), but is much darker than the greyscale used for the InfoDark button. The code to make this icon is as follows:
UIImage...
Hi,
My application flow is something like the following
A Video plays.
Once its done. Couple of icons are shown on the screen for users to tap on.
Depending on which icon was tapped, another video starts.
If no icon is tapped for like 5 seconds we automatically go to next video.
The problem is with 3. Just before the video starts a ...
Developing an iPad website i tried to use the CSS property overflow: auto to get the scrollbars if needed in a DIV, but my device is refusing to show them even if the two fingers scroll is working.
I tried with
overflow: auto;
and
overflow: scroll;
and the result is the same...
i'm only testing on an iPad (on desktop browsers wor...
I have a UITableView with many rows that push a DetailViewController depending on the selection. This detail view contains a UIImageView, and several UILabels (let's say book description, book comments etc). In viewWillAppear I assign the proper content to these outlets, in order to display content for the selected row. My problem is tha...
I am having problems with the context in Core Data not being able to save.
I get random crashes when I try to call [context save:]. Sometimes it works, sometimes it doesn't and crashes the app. Here is my delete code. I have been able to reduce the number of crashes by checking if [context respondsToSelector] save. The strange this is e...
Hey all, I'm developing a rhythm game for the iPhone at the moment, just wondered if anyone had any thoughts on the best pieces to use for reaction time.
I have all the coding worked out, and I've narrowed it down to about 2 ways:
1: Using instances of UIButton that bypass the UIControlEvent or whatever, in order to use touchesBegan an...
I need to keep track of which text field is the firstResponder for my custom keyboard to work. In the code below, I have grossly oversimplified my program, but here is the gist of the problem:
@implementation SimplePickerViewController
@synthesize pickerKeyboard;
@synthesize textView;
@synthesize textView2;
@synthesize firstResponder;
...
I'm unable to get this to work:
NSString *post = [NSString stringWithFormat:@"userudid=%@", [udid stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
NSLog(@"%@",post);
NSData *postData = [NSData dataWithBytes:[post UTF8String] length:[post length]];
//[udid dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:YES...
I am writing an application that records audio. I am looking into the feasibility of supporting multitasking while doing audio recordings (in the background).
The answer seems to be a no from what I've read so far, especially since the program is meant to release any system resources being used when switched out.
So I am wondering, is ...
In theory, can I write a game for iOS in openGL ES and expect to easily port it to Android? How about from Android to iOS?
...
I've got a UIViewController that has a modal window which I'd like to present over the entire interface, including the UITabBar.
My application hierarchy is this:
UITabBarController (A) ->
UIViewController (B) ->
UINavigationController (C) ->
UIViewController (D) ->
UIViewController (my modal vie...
Hi,
is there any LEGAL way (w/o jailbreak) to install iOS application to iOS device (ipad, iphone, ipod) without publishing to application store? For example - application for closed group of users (admins/moderators etc of some web application).
...
I'm getting confused on view controllers and would love a straight example. Here's the preamble:
I have a UIViewController with a matching .xib.
By default IB gives me a single View in the Document window.
I can make it appear by telling my UIWindow to addSubview:controller.view and bringSubviewToFront:controller.view
Here's the questi...
I am new to iOS/Mac programming. I am trying to create an iOS application that performs custom bitmap drawing, and blits it to screen.
I have looked at some examples that use CGImage, but I haven't been able to able to follow them to create an iOS application that performs custom drawing on the application window.
I am now looking for ...
I have a function that sometimes takes too long to run. I want to attempt to run it for 10 seconds, and then just kill it if it's not done. How do I do this in Objective C on the iPhone?
Creating the persistent store coordinator is failing for some users who have a lot of data in their database, because the object model merging takes to...
I am developing an app, it gets a list of locations from internet, and will trigger map app when click one item of the table list.
I found when I try to go back from map app (double tap or just one tap of the home key), my app just restart to the first screen.
I know ios4 have multitask feature, my app is built with SDK3 and test in m...
I'm starting to build a real-time raytracer for iOS. I'm new to this raytracing thing, all I've done so far is write a rudimentary one in ObjC. It seems to me that a C-based raytracer is going to be faster than one written in ObjC, but the ObjC one will be far simpler, as object hierarchies come in very handy. Speed is very important,...
Weekend research has shown me that, in mobile Safari, my best chances for the upload of an image file from the iOS photo library are through cliqcliq's Quickpic app or PicUp for iPhone.
Are there any other choices that are more seamless or better than both of these apps?
*This project i'm developing will use iPads for this task.
...