Any clues why my programmatically defined UIScrollView (using the application frame) always leaves an empty space at the top (below the navigationBar) of 20 pixels. How can I close that?
UIScrollView *vScrollView = [[UIScrollView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
vScrollView.backgroundColor = [UIColor redCo...
In Java you can write an if statement like this:
if(object1.equals(object2)){
// Do something....
}
How can I code the same logic in Objective-C?
I basically want to compare 2 of any one type of objects, such as 'Text Fields', 'Text Views', etc.
Thank you.
Shakeel
...
i populate uipicker's datasource from array built with sqlite database stored data. everythiongs works fine.. for a little while. after 6-7 spinnings, the picker freeze, and I get EXC_BAD_ACCESS. debugger indicates the program stopped in the main () function.
so, how could this happen? working for a while, and then, suddenly exit like t...
Can iPhone apps have role based login?
In my application I have to display the content according to the role of the user (employee, visitor). Till now I havent seen any app with role based login for iphone.
Can I develop role based login? is there any restriction from apple side for these kind of logins to approve the app?
...
Hi all,
I am using a table view with its style set as "Grouped". I have only 2 sections to be displayed in the table view and the table view does not occupy full iPhone screen (It has some other views with it). So I would like to display those 2 sections centered in the table view rather than displaying the sections from the top of tabl...
Hi there,
In my application, I'd like to have the navigation bar display a title and subtitle.
To that extent, I added the following code to my view controller:
// Replace titleView
CGRect headerTitleSubtitleFrame = CGRectMake(0, 0, 200, 44);
UIView* _headerTitleSubtitleView = [[[UILabel alloc] initWithFrame:headerTitleSubtitleFra...
For normal situations, the didUpdateToLocation (of CLLocationManager) does not work any more when the lock/sleep button is pushed, and your app cannot get further newLocation coordinates during the locked period.
However, some apps CAN track during the locked period, and they will show the correct route when you unlocked and see the Map...
I'm using the method described at http://stackoverflow.com/questions/805872/how-do-i-draw-a-shadow-under-a-uiview to draw shadow behind a view's content. The shadow is clipped to the view's bounds, although I disabled "Clip Subviews" in Interface Builder for the view. Is it possible to draw a shadow around a view and not only in a view?
...
Hi there,
is there a way to reduce the space between two sections of a UITableView? There are about 15 pixel between every single section I have. I did already try to return 0 for -tableView:heightForFooterInSection: and -tableView:heightForHeaderInSection: but that doesn't change anything.
Any suggestions? Thanks in advance.
–f
...
my appdelegate is having the array book, this array is storing the many object like latitude and longitude coming from server. this object are containing the many latitude and longitude values coming from server.
values coming from the sever is store in the object file booknew and then this objects are stored in the array.
how can i r...
Hello,
I have an app which is a UITabBarController, I have defined two subviews
Both tabs have their Class attribute in the Identity Inspector set to UINavigationController.
Now i have managed to get this far with my coding after VERY LONG trials.
- (void)viewDidLoad {
[super viewDidLoad];
myAppDelegate *appDelegate = (myAppDelegat...
I need to update the tableview as soon as the content is pushed in core data database.
for this
AppDelegate.m contains following code
NSManagedObjectContext *moc = [self managedObjectContext];
NSFetchRequest *request = [[NSFetchRequest alloc] init];
[request setEntity:[NSEntityDescription entityForName:@"FeedItem" inManagedObjectCont...
Hi, I want to read XHTML tags and text separately using objective C.
what approach I have to follow?
...
I have using AVAudioPlayer in my app but the problem is that when i play the song from list it will played while before stopping the song i am again goes to song list then select another song then both song will start playing simultaneously so please tell me the code which will terminate my first song.
I use flag variable for initializi...
I'm trying to set up a UITableView which acts as a form. Each cell has within it a UILabel and a UITextField, so one cell is:
Name <enter name>
^ ^
UILabel UITextField
Now, I'm trying to populate the UILabel and the UITextField from a NSDictionary (from a plist), where it's organized like so:
Root ...
How to find when the ipod is held straight up in the air - both horizontally and vertically.
Can any one help me ?
Thanks in advance.....
...
Hi All,
I am developing an app which requires interaction with a SOAP web service, to retreive and display data. Now in the application, multiple view controllers have the possibility of calling different methods, of the web service to retreive some data.
I tried to write a common class to handle all the web service related stuff, but...
I have a CATiledLayer inside a UIScrollView and all is working fine. Now I want to add support for showing different tiles for three levels of zooming.
I have set levelsOfDetail to 3 and my tile size is 300 x 300. This means I need to provide three sets of tiles (I'm supplying PNGs) to cover: 300 x 300, 600 x 600 and 1200 x 1200.
My pr...
I've been trying to use persistent keychain references in an iPhone application. I found that if I created two different keychain items, I would get a different persistent reference each time (they look like 'genp.......1', 'genp.......2', …). However, attempts to look up the items by persistent reference always returned the content of t...
Hi!
Maybe I´m just stupid but I cant understand why this isnt working.
I want to achieve a little animation when I'm entering editing mode within a UITableView.
[super setEditing:NO animated:YES];
[myTable setEditing:NO animated:YES];
[myTable reloadData];
[self.navigationItem.leftBarButtonItem setTitle:@"Edit"];
[self.navi...