I have created a custom UITableViewCell. The table view is showing data fine. What I am stuck in is when user touches cell of tableview, then I want to show the background color of the cell other than the default [blue color] values for highlighting the selection of cell.
i use this code but doesn't happen anything :
cell.selectedBackgr...
I Am creating an application and i want to achieve push effect but without using navigation controller.Does someone knows a core animation source code to achieve this? I have a view hierarchy like this.A main controller which has an header image with 4 buttons on it.I mean it will be displayed all the time whatever view in front of scree...
I am trying to get JSON data loaded from a NSURLConnection delegate to send the array of objects back to the tableview that called it.
The delegate object is initialized with callback to send back to
NSArray *returnArray;
ResultsTableRoot *callback;
JSON handling method
- (void)connectionDidFinishLoading:(NSURLConnection *)con...
i want to check the desired accuracy in simulator but i never get it within didupdatetolocation method.I know that in simulator delegate method is called only once.Does someone knows how to get desired accuracy in simulator.Here is my code to get desired accuracy.
// Delegate method from the CLLocationManagerDelegate protocol.
- (void)l...
So ... we have this bit of motion detection:
- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event {
if (event.type == UIEventTypeMotion && event.subtype == UIEventSubtypeMotionShake) {
[[NSNotificationCenter defaultCenter] postNotificationName:@"ShakeBegan" object:self];
}
}
Innocuous enough. We also c...
This has me stumped. I'm trying to figure out how to save the state of a UIScrollView. For example, I have several images in a UIScrollView that are loaded like so:
NSUInteger i;
for (i = 1; i <= kNumImages; i++)
{
NSString *imageName = [NSString stringWithFormat:@"image%d.jpg", i];
UIImage *image = [UIImage imageNamed:image...
I want to know that it is possible to get event name from datepicker like if i select 25 december and get christmas as event name etc.
...
I'm trying to replicate the look of my app during start-up with how iTunes and App Store appear.
Specifically my app has a tab bar that will get populated when it has finished downloading info from a web site - until then it should look empty. The only way I can appear to do this so far is to have an empty name and image for the UITabB...
Trying to use a nice 'back' arrow image, like that found in Apple's iPod app - when I add my 30x30 image it seems to squashed or scaled, as it looks tiny?
Is it possible that the UINavigationBar's back item will have to be custom view perhaps?
...
I am referring to the popup window that asks the user to submit a review/rating.
I know it can be done since the Aardark app does it...it asks several times in fact! (Almost too spammy.) But there has to be an API to trigger the rating request? Google is giving me no love on this one.
...
For a personal project of mine, I'm trying to retrieve iPhone WiFi signal strength. I'm fully aware that this in the land of undocumented goodness, so please refrain from the "No Appstore" answers. :)
Anywho, I've been reading up on previous WiFi Network Scanner Apps (WiFi Stumbler), but I'm afraid most (if not all) reflect outdated SDK...
i have a uitableview cell added some labels something like this
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[...
If i am palying a sound using the AVAudioPlayer in the AVFoundation framework (I can already do this), is there any way to detect the current level of the audio playing, like a VU meter that is listening to the mp3 playing.
I don't want to detect the audio of the mic, just the file playing.
I want to animate a mouth to prerecorded audi...
Hi Guys.
I have a question about altering the height of a UITextField. I have already made the object in Interface Builder and the height is fixed as 31. I have searched around on the net and this doesnt seem to be a popular thing to do.
link to apple dev page
Regards @norskben.
...
Hi guys,
I have an application that loads core data, then calls the XML Web Service to get updated data. I basically want my app, rather than to erase all the data and load everything (including new) to persist, I want it to add only the new stuff onto the existing stack (without duplication).
What's the general consensus strategy for ...
I am using the iPhone SDK and Objective-C and
I get this error message:
Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit/UIKit-984.38/UITableView.m:774
2010-01-08 13:24:16.842 MyAPP[628:20b] Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: i...
How can I align my UIView so that it aligns to the bottom of parents frame?
Normally I would create it and move to the bottom of the view, in a full screen view that is 460px tall:
myView = [[MYView alloc] initWithFrame::CGRectMake(0.0f, 300.0f, 320.0f, 160.0f)];
But how can I set this up so that if the available space for my iPhone ...
Hi,
I'm wondering if I can change the background color of just the prompt of the UINavigationBar (e.g. to red, while the rest of the navigation bar stays black), so I can use the prompt property of the UINavigationItem to display status / error messages as a one-liner.
Your help is appreciated.
...
Hi.
I'm realizing what a newbie I still am with this problem I have. I am trying to present a modal window in a project I am working on and it's not appearing. My solution was then to create an absolute basic project and get it working there first, so I would clearly understand my problem, but I can't get even this working :(
I add a V...
i am creating an application which requires internet must be avialable to use it.I want to use reachability class in my project and i want to detect if user has no internet connection whatever the technique is either wifi,Carrier or whatever the way is.I want a step by step guide for this.Thanks
...