With this
NSSortDescriptor *lessonDescriptor = [[NSSortDescriptor alloc] initWithKey:@"lesson" ascending:YES];
[resultArray sortUsingDescriptors:[NSArray arrayWithObject:lessonDescriptor]];
it's sorting the "lesson"-objects to
(
{
lesson = 9;
subject = bg;
},
{
lesson = 8;
subject = bg;
},
{
lesso...
Hi,
I have a Tabbar application with a navigation controller (classic).
At some point when a url is selected a WebView controller is displayed with the appropriate url address.
I want to be able to use the tabbar area placing the webview over it. I tried
[self.tabBarController.tabBar setHidden:TRUE];
but this just makes the tabbar wh...
Hi there.
I need to display the EURO (€,$,£) sign inside my UI.
those sign are stored inside a SQLite database with theire \uXXXX representations.
How can i create theire NSString representation?
Here is a sample of code:
NSString *currency = [[OptionDAO sharedInstance] readStringOption:@"TEST"
...
I have a table based app that stores data on a mysql server, it gets updated and writes the data to nsdictionary for persistance. When you make a change to the data, the table need to update. However if I put a [self tableview reloadData] the app crashes when selecting a row. Does anyone have an Idea on how to make the table refresh happ...
I design a HTML5 canvas effects homepage on my site http://catfan.me
You can click the sky and add a cloud, and It`s able to show the fps.
It runs perfect on HTML5 supported browser, such as Chrome, FireFox, Safari, IE9..
But i do not know if it run on iPhone, iPad or Android mobile phone. I didn`t have this devices.
Can anyone to he...
I searched a lot of web-site about this topic and try some solutions:
1)Changing navigationItem title
I changed navigationItem title but More tabItem is not changed.
2)Changing tabbarItem title
[tabBarController moreNavigationController].tabBarItem.title = @"Morre";
It didnt work either.
3)Creating a new tabbarItem and assigning t...
I have a UIView in which I need to draw text in drawRect:
- (void)drawRect:(CGRect)rect {
...
[@"some text" drawAtPoint:somePoint withFont:someFont];
...
}
Because the text requires special formatting, I cannot just use a UILabel.
It looks fine until I rotate the device. Then the size of my custom UIView changes, and the ...
I want to disable a method from running if my audio clip is playing.
I have myImage.hidden working if the audio.playing is running, how would I go about disabling a method in the same way?
if (audio.playing == YES) {
// image is hidden
myImage.hidden = YES;
}
...
Is it safe to assume that an attribute, namely fetchedResultsController, of chatViewController, an instance of a subclass of UITableViewController, is always nil when viewDidLoad is called, assuming that it's set to nil in viewDidUnload? Phew!
If that's the case, then I see no immediate need to redefine the accessor function like in the...
Hello,
I have an Android app and some company is interested in using part of it and rebranding it for its customers. One of the options would involve licensing the code to them for use in this specific case.
Would you recommend doing that as a good option?
What is the cost of licensing code in comparison to the cost of the original dev...
What programming languages can one use to develop iPhone, iPod Touch and iPad (iOs) applications?
Also are there plans in the future to expand the amount of programming languages that iOs will support?
...
Hi, is there a way to programmatically turn off the display in iOS? Not just turning brightness down, but off like the way the Phone App does. I am happy to use private API, since this is for personal use.
Thanks!
...
... with a button outside of the uiwebview?
please see screenshot attached.
the thing is, that I have a local html site in the webview, that goes to further local web sites. I want the user to be able to get back to the "home page" of the local website by clicking on the "home" button on the top, which is not part of the uiwebview.
(m...
How do I create a resource bundle to use in an iPhone/iPad app? Is it simply a folder with the .bundle extension or do I have to do something else to make it work?
Are there any special considerations for Universal apps (ie: do I have to create separate bundles for each platform?) and localized resources?
I would like to create and use...
Hi
I have a singleton which I hold a single integer in, my score. However when I load it form the singleton in a another view it doesn't show what I want but instead sticks at a wired 6592960. Any ideas why? Something to do with how I am using @property Im thinking, what the correct way to @property an int?
Thanks.
EDIT:
Code:
Singlet...
I’m working on an app that uses a UIWebView to render content. This webview is in a UIScrollView which, when the user scrolls near the top (or bottom), will append another webview above(/below) the visible one in the scrollview (i.e. pseudo-infinite scrolling).
I’m computing the offset of various elements in the WebView with jQuery’s .o...
is UIWebView the only way to open a pdf document on the iphone? how can i interact with the document? eg: getting the current page number?
...
I'm developing an iPhone/iPad app that supports dragging items between table views. Since all the tables don't fit on screen, I've written a custom UIScrollView that lays them out horizontally, and supports paging.
While I've gotten the primary drag and drop together, there are a few remaining issues I can't get past.
After the user h...
Hi,
Is there a way to retrieve text coordinates from PDF file on iPhone?
Thanks,
Nava.
More details: I'm trying to get words from pdf file and highlight them. While it's a pretty simple task in Mac OS X, which has a PDFKit, it's not that trivial on iPhone, which has Quartz set of functions to present and get information from pdf fil...
Hello,
I’ve been looking into the Accelerate framework that was made available in iOS 4. Specifically, I made some attempts to use the Cblas routines in my linear algebra library in C. Now I can’t get the use of these functions to give me any performance gain over very basic routines. Specifically, the case of 4x4 matrix multiplication....