I have a UITableViewController which displays its own top navigation bar when it's presented modally, but uses the UINavigationController navigation bar when it's pushed onto the navigation stack.
I currently have code which programmatically moves origin of the table view depending on whether it has the navigation bar. When it uses its...
I've got a tableview with a search bar at the top. When I click on the search, it is called to first responder and the keyboard appears. The search bar has a cancel button, but when the table is empty I want the user to be able to tap anywhere on the empty table rows to resign the search bar and keyboard as first responder. How do I do t...
I'm trying to vibrate/shake a UI element, namely a control, as if it were struck, and is resonating. I can use Core Animation to shake it vertically, horizontally or both, by one pixel:
CABasicAnimation* rotationXAnimation;
rotationXAnimation = [CABasicAnimation animationWithKeyPath:@"position.y"];
rotationXAnimation.fromValue = [NSNum...
i am using cllocation.speed to get the speed of the device moving but i am getting 0 every time.....can anybody help me out with this
even i am trying speed = ([newlocation getDistanceFrom:oldlocation]/[newlocation.timeStamp timeIntervalSinceDate:oldlocation.timeStamp])
the problem is it is giving worng speed once in a while......
...
Starting with an app already in development, I have carried out the instructions in the iPhone Development Guide – Unit Testing Applications
I can successfully include and use my App's classes in Application-style tests that run on the device, and output their results to the console.
If I add the following line of code:
STAssertTrue([...
Hi ,
I have the following code
@implementation UIDevice(machine)
- (NSString *)machine
{
size_t size;
// Set 'oldp' parameter to NULL to get the size of the data
// returned so we can allocate appropriate amount of space
sysctlbyname("hw.machine", NULL, &size, NULL, 0);
// Allocate the space to store name
char *name =...
Hi friends,
I have a question here regarding iPhone app submission. I have a free application submitted in AppStore already. I made the same application with additional features to submit as priced version. I am going to use the same provisional profile as i have created PP as not wild card one. Do i need to follow filling up the app su...
How could i get a toolbar with tableview to get buttons on that?
...
Hi guys,
Seeking your help to get off .epub(s) sea in iPhone world...
I am trying to make an iPhone application which can read .epub(s). So, I'm in search of a good method, API, Webservices, etc. which help me to render .epub(s) on iPhone's screen. Please let me know once you got any information about .epub(s) on iPhone.
=> My applica...
Hello,
Can We make Custom control like the default Slider in MPMoviePlayerController
for forwarding and Backward the movie?
...
Hi,
I'm using the Utility Application template to build my app.
Having a hard time getting an image to show up as the app launch. (I'm having this difficulty with all the templates basically)
Basically, right now when the app launch, it starts with a black background and it takes a second or 2 before the content appears.
However, I see...
I'm writing in my code,
static const NSString *a = @"HARDIk";
this is in a.h file
now i use this,
a object in any b file
I'm getting warning a defined but not used
how to remove this warning?
...
I have 2 layer is top and bottom on my program
how can i remove top layer with animation or bring top layer to back is it possible?
...
I am using the AVAudioPlayer class to play .mp3 files in my App. Is it possible to check whether the earphones are connected to the device programmatically?
In first generation iPod devices, the volume control bar is hidden (for music and videos) when no earphones are connected.
...
I am using a UIButton in my application. This button title is displayed dynamically as per the user choice. Now i have to resize the button width as per the title content.
I am calculating the string length and assigning it to button's width.
the button is resized as per title but the problem is as follows,
1. If at first the title with...
I know that there are already 2 relevant posts on that, but it's not clear...
So the case is this...:
I have a UIImage which consists of a png file requested from a url on the net.
Is it possible to mask out the white color so it becomes transparent?
Everything I have tried so far with CGImageCreateWithMaskingColors, returns a white i...
When I generate my classes from CoreData entities I get generated methods
@interface Site (CoreDataGeneratedAccessors)
- (void)addSearchesObject:(Search *)value;
- (void)removeSearchesObject:(Search *)value;
- (void)addSearches:(NSSet *)value;
- (void)removeSearches:(NSSet *)value;
@end
So my question is pretty simple when I call rem...
Here is my code :
NSString *path1 = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"NewSouthWales.html"];
NSURL *pageURL = [NSURL fileURLWithPath:path1];
//URL Requst Object
NSURLRequest *requestObj = [NSURLRequest requestWithURL:pageURL];
//Load the request in the UIWebView.
[self.webView loadRequest:request...
hi,
i have tabbar controller, first tab is for Tableview controller.but i do xml parsing in appldidfinish method , in the xml parse didEndElement, i calculate items count and i give
it into first tab's Tableview controller's numberOfRowsInSection,but after xml parsing finished, the following method wont be called. tableview is empty.......
I'm creating a custom UISlider to test out some interface ideas. Mostly based around making the thumb image larger.
I found out how to do that, like so:
UIImage *thumb = [UIImage imageNamed:@"newThumbImage_64px.png"];
[self.slider setThumbImage:thumb forState:UIControlStateNormal];
[self.slider setThumbImage:thumb forState:UICo...