I tried doing this:
[toolbar setTint:[UIColor colorWithPatternImage:[UIImage imageNamed:@"thingFromMyBundle.png"]]];
but it just ended up black. At first I assumed you weren't allowed to "tint" with a texture, but I've seen apps recently that can do this. Am I missing something?
Thanks.
...
Hi,
For each course I am storing the day of the week the class the user has...and the start and end time and room no.
What would be the best approach in terms of data type, Like for storing time?? so that when I pull it out I can display it e.g 1:00 PM.
Thanks!
...
My application contains more than 200 images each with size approx. 15 KB. I want to flip these image one by one. Is there will be any time lag for loading images? Is there any alternate method for doing that?
Anyone please help!
...
i am not sure what i am missing here. I Have a custom UINavigationController and i am trying to add a persistant UIBarButtonItem to the bar.
-(void)viewDidLoad
{
self.navigationBar.barStyle = UIBarStyleBlack;
UIBarButtonItem *bbi = [[UIBarButtonItem alloc] initWithTitle:@"Nope..."
style:UIBarButtonItemStyleBordered
...
I have a very simple app created with the Utility Application project template on XCode. My MainView has two UIPickerView components and two buttons. The FlipSideView has another UIPickerView.
The pickers on the main view each have 4 segments and each segment has 8 rows. The picker on the flip side has just 1 segment with 8 rows. All ro...
Hello, I'm new here and I'm facing a problem. I need to know if it is possible to implement the WS-Security protocol with X.509 certificates on a native iPhone application. I haven't found much information on the web, except this information from Apple about security services.
I just want to ask, is it possible? has it been made before?...
If I instantiate an FBO without binding a rendering buffer or a texture to it, what happens when I draw to it, nothing?
Do I need to associate a rendering target (renderbuffer or texture) to have an FBO do anything? What I'm trying to do is precache some buffers and then merge them later, but that doesn't seem to work at all.
Ideally I...
When I change and synchronize value in my app, they get saved, but the changes do not appear in the settings app. Is there a way to get them synced while maintaining the ability to make changes inside the app? Here is my code:
//I'm registering the defaults from the Settings bundle I created using David Keegan's class inside my applicat...
I would like to tile a CGImage across a CALayer, but it seems to only want to stretch it.
The example code:
self.background = [UIImage imageNamed: @"Background.png"];
[documentDisplay.layer setContents: self.background.CGImage];
I would like to avoid subclassing if I could.
...
I am using this code:
NSURLConnection *oConnection=[[NSURLConnection alloc] initWithRequest:oRequest delegate:self];
to download a file, and I want to update a progress bar on a subview that I load. For that, I use this code:
- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data {
[oReceivedData appendDat...
Hi,
I've decided to implement my own interface for connecting two devices running my game, as opposed to using the GKPeerPickerController. This is actually working quite well. But I just realised that in my creating of the GKSession I'm not actually specifying whether the connection should be Wireless or Bluetooth. I have an option in m...
I have 2 entities, Task and List. Each task has a to-one relationship to a List object called "list", and there is an inverse relationship with List, which has a to-many relationship with Task called "tasks".
I'm trying to use a fetch request with an NSPredicate to get all the Task objects that belong to a specified List:
NSPredicate ...
I have UITableViewController (initiated by the Navigation-based app project template). I am overriding loadView and putting up an alternative view (w/ a UILabel and UIActivityIndicator) to display while the table's contents is loading.
When the loading is done, I remove the loading view and try to display the table view but I see that...
Hi all,
I am working on a universal app, I used UISplitViewController in doing iPad application. I followed the Universal app guidelines i.e, i keep base SDK as 3.2, iPhone Target OS ad iPhone OS 3.1.3, Taget device as iPhone/iPad. And i used "Adding Runtime Checks for Newer Symbols" for UISplitViewController and UIPopOverController.
C...
First, I'm using an NSURLConnection to download JSON data from twitter. Then, I'm using a second NSURLConnection to download corresponding user avatar images (the urls to the images are parsed from the first data download).
For the first data connection, I have my TwitterViewController set as the NSURLConnection delegate. I've created a...
I have UITextfield and without changing its size I want to change the size of cursor. Is this possible?
...
anyone can tell differences among
willRotateToInterfaceOrientation,
willAnimateRotationToInterfaceOrientation,
didRotateFromInterfaceOrientation,
...
what is NSParameterAssert?can anyone explain with example?
...
Im creating a group using ABGroupCreate(), i have 10 person(ABPerson) records. Im using ABGroupAddMember function inorder to add the person to the group, but the person record is not getting added into the group. Yes im saving the addressbook. Am i missing something here, i need help this on.
...
Hey guys how can I make an app keep playing an mp3 after pressed the hold/power button.
Here is the code I use for preparing the AVAudioPlayer:
- (void)PrepareAudio:(int)index
{
NSString *soundFilePath = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"%@",[_Audio objectAtIndex:Game]] ofType:@"mp3"];
NSURL *...