从Storyboard中获取ViewController的实例对象

2016年12月05日 iOS 10条评论 阅读3249次



// 获取storyboard中特定标识的ViewController
// Identity Inspactr中Storyboard ID中输入一个字符串标示
UIStoryboard xxx_storyBoard = [UIStoryboard storyboardWithName:@"storyboardname" bundle:nil];
XXXViewController
vc = [xxx_storyBoard instantiateViewControllerWithIdentifier:@"storyboard_id"];



// 获取storyboard中入口ViewController
UIStoryboard xx_storyBoard = [UIStoryboard storyboardWithName:@"storyboardname" bundle:nil];
XXViewController
vc = [xx_storyBoard instantiateInitialViewController];



分享本文至:

WRITTEN BY

avatar
看了本文是不是觉得很赞,那就赶紧点击下面按钮分享给身边的朋友吧!

10 条评论

  1. avatar torcgunstore

    <a href="http://www.myfraimz.com/nike-mercurial-superfly-fg-electric-gr%C3%B8nn-hyper-punch-kurpesa">nike mercurial superfly fg electric gr酶nn hyper punch</a> <a href="http://www.winnercells.com/nike-free-run-5.0-v4-black-metallic-gold-yarn-sneakerb">nike free run 5.0 v4 black metallic gold yarn</a> <a href="http://www.atppest.com/bon-march%C3%A9-nike-flyknit-lunar-2-hommes-or-shoesg">bon march茅 nike flyknit lunar 2 hommes or</a> <a href="http://www.windriftbar.com/orange-boston-red-sox-hat-hats">orange boston red sox hat</a> <a href="http://www.kidtokidboise.com/air-jordan-phase-silver-pink-sneakerf">air jordan phase silver pink</a> <a href="http://www.mesmertronic.com/femmes-nike-cortez-jaune-noir-obuvd">femmes nike cortez jaune noir</a>
    torcgunstore http://www.torcgunstore.com/

  2. avatar weisseditions

    <a href="http://www.clearvieweps.com/bon-march%C3%A9-nike-huarache-ultra-femmes-blanc-runningb">bon march茅 nike huarache ultra femmes blanc</a> <a href="http://www.offleaseford.com/wholesale-ugg-boots-uggsr">wholesale ugg boots</a> <a href="http://www.amyhessatx.com/ray-ban-clubmaster-polarized-green-sunglassesr">ray ban clubmaster polarized green</a> <a href="http://www.elindigo.com/mackage-leather-bomber-jacket-mackager">mackage leather bomber jacket</a> <a href="http://www.googleizate.com/nike-air-max-90-black-black-mono-sportsb">nike air max 90 black black mono</a> <a href="http://www.offshoretent.com/adidas-stan-smith-womens-red-black-footc">adidas stan smith womens red black</a>
    weisseditions http://www.weisseditions.com/

  3. avatar naijafitgirl

    <a href="http://www.dandoelroll.com/nfl-haason-reddick-youth-game-black-jersey-43-arizona-cardinals-nike-alternate-nflx">nfl haason reddick youth game black jersey 43 arizona cardinals nike alternate</a> <a href="http://www.europeankb.com/nike-darwin-rosa-silber-chaussuresa">nike darwin rosa silber</a> <a href="http://www.intercashgold.com/air-jordan-retro-1-grigio-bianca-butya">air jordan retro 1 grigio bianca</a> <a href="http://www.kathimartuza.com/nike-air-max-tn-lava-r%C3%B8d-year-butyc">nike air max tn lava r酶d year</a> <a href="http://www.royalokavango.com/nike-roshe-run-triangle-arancia-argento-obuvg">nike roshe run triangle arancia argento</a> <a href="http://www.thewebmaestra.com/air-jordan-retro-6-enfants-kaki-kurpesa">air jordan retro 6 enfants kaki</a>
    naijafitgirl http://www.naijafitgirl.com/

  4. avatar 76yfbkug

    <a href="http://www.wwc3s90g.com/nike-air-rejuven8-mule-3-svart-gull-kurpesa">nike air rejuven8 mule 3 svart gull</a> <a href="http://www.18ykuccs.com/nike-lunarglide-6-femminile-blu-rosa-butyc">nike lunarglide 6 femminile blu rosa</a> <a href="http://www.ofv56fjb.com/jordan-6-infrar%C3%B8d-celebrity-butyd">jordan 6 infrar酶d celebrity</a> <a href="http://www.iwd661th.com/mujeres-nike-air-max-tailwind-7-verde-gris-kurpesc">mujeres nike air max tailwind 7 verde gris</a> <a href="http://www.lv5sb333.com/adidas-originals-zx-750-noir-trainers-schuhea">adidas originals zx 750 noir trainers</a> <a href="http://www.dzpzobo7.com/nike-lunarglide-6-dam%C3%A4nner-gr%C3%BCn-himmelblau-kurpesf">nike lunarglide 6 dam盲nner gr眉n himmelblau</a>
    76yfbkug http://www.76yfbkug.com/

  5. avatar sennaparisllc

    <a href="http://www.getawayoffer.com/ralph-lauren-vest-gris-beige-polou">ralph lauren vest gris beige</a> <a href="http://www.lbsportsguys.com/nike-lunarepic-low-flyknit-sort-guld-chaussuresa">nike lunarepic low flyknit sort guld</a> <a href="http://www.thesleeperson.com/herre-nike-air-max-2015-gr%C3%B8n-guld-schuhed">herre nike air max 2015 gr酶n guld</a> <a href="http://www.ubcfellowship.com/air-jordan-3-retro-nero-uk-mobile-scarpea">air jordan 3 retro nero uk mobile</a> <a href="http://www.vipartonline.com/nike-magista-cleats-lila-gold-kurpesf">nike magista cleats lila gold</a> <a href="http://www.zumbajill.com/nike-navy-blue-zack-martin-name-number-logo-nfl-70-dallas-cowboys-t-shirt-nflr">nike navy blue zack martin name number logo nfl 70 dallas cowboys t shirt</a>
    sennaparisllc http://www.sennaparisllc.com/

  6. avatar golfbodyshop

    <a href="http://www.injost.com/air-jordan-28-p%C3%BArpura-plata-schuheb">air jordan 28 p煤rpura plata</a> <a href="http://www.wonjuvally.com/womens-nike-pittsburgh-steelers-26-rod-woodson-game-black-team-color-nfl-jersey-nflu">womens nike pittsburgh steelers 26 rod woodson game black team color nfl jersey</a> <a href="http://www.carrollgrp.com/adidas-tubular-shadow-knit-tan-skou">adidas tubular shadow knit tan</a> <a href="http://www.nrastogi.com/air-max-foot-locker-2013-runninge">air max foot locker 2013</a> <a href="http://www.annersroofing.com/limited-edt-vault-x-adidas-originals-rod-laver-consortium-zapatosu">limited edt vault x adidas originals rod laver consortium</a> <a href="http://www.orderollie.com/nike-kobe-xi-elite-low-noir-horse-chaussuresa">nike kobe xi elite low noir horse</a>
    [url=http://www.golfbodyshop.com/]golfbodyshop[/url]

  7. avatar warthogrugby

    <a href="http://www.belronctx.com/fake-nobis-cartel-nobisr">fake nobis cartel</a> <a href="http://www.mikeorlandoni.com/under-armour-clutchfit-drive-dam%C3%A4nner-gr%C3%BCn-skod">under armour clutchfit drive dam盲nner gr眉n</a> <a href="http://www.pobert.com/us-polo-assn-scarf-scarfr">us polo assn scarf</a> <a href="http://www.jobmetry.com/new-york-yankees-caps-baby-girl-hatc">new york yankees caps baby girl</a> <a href="http://www.hotellautram.com/new-nike-lebron-skox">new nike lebron</a> <a href="http://www.bonodescuento.com/billig-air-jordan-super-fly-kvinders-lilla-shoesb">billig air jordan super fly kvinders lilla</a>
    warthogrugby http://www.warthogrugby.com/

  8. avatar PDM系统

    学习一下

  9. avatar 大众搬家公司

    学习了 点个赞

  10. avatar 宁波PDM

    讲得很实用啊

欢迎留言




用户登录

sitemap