I am trying to convert an android application to an iphone application and I really like the MenuInflater of the Android which displays a transparent menu over half of the screen.
Is there any type of menu on the iphone that is similar to what I am looking for?
...
I have a custom UIView which I named UIWheel that I am rotating upon TouchDown. This UIWheel has many UIViews which I would like to rotate at the opposite direction (so that they remain appearing upright even after rotation) .
How do I code to tell it to get all of the UIViews in the UIWheel and in TouchDown rotate in the opposite direc...
I am trying to manage a few animations in my scene using the following method:
In a loop, create animated
UIImageView, set the on stopped
method. Also, store this UIImageView
in a NSMutableDictionary. The animation ID is the same as the key in the dictionary.
When this animation is stopped, get the animation ID. Use [animations objectF...
I am trying to have a view that has four buttons on the top: a picture button, video button, audio button, and text button and an imageView below the buttons. If you click on the picture button, the imageView displays the picture. but if I click the video button i want the imageView to display a picture of the video that you can click an...
Here is the code I am using:
NSFileManager* defaultMgr = [NSFileManager defaultManager];
if (![defaultMgr fileExistsAtPath:path]) {
return nil;
}
Where path is a url to a file on the system like: "file://localhost/private/var/mobile/Applications/blahblahblah"
This crashes with SIGABRT when the call to fileExistsAtPath: is made. The...
Hi,
I am trying to rotate an image. This I am succeeding in doing. The problem is that when I am clicking down and dragging slightly, the image rotates completely to reach the point where I have clicked and then rotates slowly as I drag the image clockwise. I am concerned to why it is rotating completely to the place that I am dragging....
Hi,
I have a set of textures which I need to draw at different vertices such that every texture is visible.I cannot define a static set of vertices since I load the textures dynamically and I dont know how many textures will be loaded everytime ( i choose them based on a condition).
This is how my code looks as of now.
for(int i=0;i<n...
Hello There!
I have a method that receives a number in a NSString format.
I wish to convert this string to a double which I can use to calculate a temperature.
Here's my method.
NSString *stringTemp = text; // text is a NSString
NSLog(@"%@",stringTemp); // used for debugging
double tempDouble = [stringTemp doubleValue];
NSLog(@"%f",...
I'm wondering if anyone has a link to a good tutorial or can point me in the right direction to recreate the 'drag to reorder' cells in a UITableView like Epic Win App. The basic idea is you tap and hold on a list item and then you drag to where you want the item to be. Any help would be greatly appreciated.
...
Hey everyone,
I'm just looking thought the apple iOS example "SpeakHere" http://developer.apple.com/library/ios/#samplecode/SpeakHere/Listings/Classes_AQPlayer_mm.html%23//apple_ref/doc/uid/DTS40007802-Classes_AQPlayer_mm-DontLinkElementID_12 and I was wondering what's the best approach for using the above, but with two audio files, so ...
Hello!
I have a UILabel I created on one of my views in my application. I have it set to a static text in IB, but I'm going to change that text programmatically.
Here's how I was trying to do it.
fahrenheitLabel.text = (@"Temperature: %@", text);
//fahrenheitLabel is my UILabel
//"text" is a NSString
I expected the output to be ...
I have a button that load a link into a webview. While those links are loading, the networkActivityIndicator is animated until the site completely loads. But once a link is loaded, and I try to browse the website in the webview, by logging on to it or something, the network activity indicator does not animate.
How would I implement it t...
UIViewController A , B.
A implements Horizontal screen , A turn to B.
how do what? cancel Horizontal screen for B.
B code :
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return NO;
}
Is not ok! Why??
Please help me ! thanks!
...
Hi all,
I'm a student working on a project where a need to integrate my iPad (or iPhone) application with a Rails Web App, populating the database from the iOS side and displaying the contents in the web app. I've found ObjectiveResource, but I've had difficulty getting it up and running (went through the getting started, and had the si...
I have an OpenGL-based iPad project. In one view I have objects being rendered and floating on the screen.
When I add a transparent UIView on top of this view with a transparent table view with custom cells, I can see the table view and the objects still being rendered.
Now - when I go to drag on the table view to scroll through elemen...
I have two UITableViewControllers with a fairly simple ui flow. One UITableViewController loads another UITableViewController when you select an item in the first UITableViewController.
(UITableViewController) List of Stories -> Select a Story -> (UITableViewController) List of Sentences
In the second UITableViewController (MakeSen...
I'm building an iPhone app that communicates with an external server via JSON. The JSON library I'm using parses the response string from the server into a dictionary. Currently I've got a method that I've written that just uses hardcoded strings as keys for the dictionary in a constructor I've written called initWithDictionary:(NSDictio...
I recently watched one of the WWDC 2010 videos: Session 311 - Advanced Memory Analysis with Instruments. The link is here.
There is an interesting example in the video on finding Abandoned Memory. They say that it is often more important to debug than leaks but can be more difficult.
Abandoned Memory is defined as "Accessible allocate...
Hi. I've created a tabbar application using the template in Xcode, and have setup a working tab bar application. I want to know how I can change the view currently on the screen using a UIButton, so the result is the same as if the user just clicked one of the tabs.
...
I have a UITableView which I need to update about 2-3 times a second via NSTimer. The cells in this table have UIButtons which respond to touchupinside. The problem is that this created extreme sensitivity. I could not press the button for too long otherwise it wouldn't register.
That issue was solved in
http://stackoverflow.com/questio...